| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_mark($type = MARK_NEW) |
Return a themed marker, useful for marking new or updated content.
$type Number representing the marker type to display
A string containing the marker.
MARK_NEW, MARK_UPDATED, MARK_READ
includes/
<?php
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>';
}
}
}
?>
Kommentare
Kommentar hinzufügen