theme_mark

Versions
4.6 – 6
theme_mark($type = MARK_NEW)
7
theme_mark($variables)

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

Code

includes/theme.inc, line 907

<?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>';
    }
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.