You are here

function theme_mark in Drupal 5

Same name and namespace in other branches
  1. 4 includes/theme.inc \theme_mark()
  2. 6 includes/theme.inc \theme_mark()
  3. 7 includes/theme.inc \theme_mark()

Return a themed marker, useful for marking new or updated content.

Parameters

$type: Number representing the marker type to display

Return value

A string containing the marker.

See also

MARK_NEW, MARK_UPDATED, MARK_READ

Related topics

4 theme calls to theme_mark()
node_admin_nodes in modules/node/node.module
theme_comment in modules/comment/comment.module
theme_comment_folded in modules/comment/comment.module
tracker_page in modules/tracker/tracker.module
Menu callback. Prints a listing of active nodes on the site.

File

includes/theme.inc, line 907
The theme system, which controls the output of Drupal.

Code

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>';
      }
    }
  }
}