theme_mark($type = MARK_NEW)
drupal/includes/theme.inc, line 1486
Return a themed marker, useful for marking new or updated content.
@see MARK_NEW, MARK_UPDATED, MARK_READ
$type Number representing the marker type to display
A string containing the marker.
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
function theme_mark($type = MARK_NEW) {
global $user;
if ($user->uid) {
if ($type == MARK_NEW) {
return ' <span class="marker">' . t('new') . '</span>';
}
elseif ($type == MARK_UPDATED) {
return ' <span class="marker">' . t('updated') . '</span>';
}
}
}