Same name and namespace in other branches
  1. 4.7.x includes/theme.inc \theme_mark()
  2. 5.x includes/theme.inc \theme_mark()
  3. 6.x includes/theme.inc \theme_mark()
  4. 7.x 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

5 theme calls to theme_mark()
comment_admin_overview in modules/comment.module
Menu callback; present an administrative comment listing.
node_admin_nodes in modules/node.module
Generate the content administration overview.
theme_comment in modules/comment.module
theme_comment_folded in modules/comment.module
tracker_page in modules/tracker.module
Menu callback. Prints a listing of active nodes on the site.

File

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

Code

function theme_mark($type = MARK_NEW) {
  global $user;
  if ($user->uid && $type != MARK_READ) {
    return '<span class="marker">*</span>';
  }
}