theme_mark
Definition
theme_mark($type = MARK_NEW)
includes/theme.inc, line 902
Description
Return a themed marker, useful for marking new or updated content.
See also
MARK_NEW, MARK_UPDATED, MARK_READ
Parameters
$type Number representing the marker type to display
Return value
A string containing the marker.
Related topics
| Name | Description |
|---|---|
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
Code
<?php
function theme_mark($type = MARK_NEW) {
global $user;
if ($user->uid) {
if ($type == MARK_NEW) {
return ' <span class="marker">'. t('new') .'</span>';
}
else if ($type == MARK_UPDATED) {
return ' <span class="marker">'. t('updated') .'</span>';
}
}
}
?> 