function theme_mark

Returns HTML for a marker for new or updated content.

Parameters

$variables: An associative array containing:

Related topics

4 theme calls to theme_mark()
HistoryUserTimestamp::render in drupal/core/modules/history/lib/Drupal/history/Plugin/views/field/HistoryUserTimestamp.php
Render the field.
node_admin_nodes in drupal/core/modules/node/node.admin.inc
Returns the admin form object to node_admin_content().
theme_node_recent_content in drupal/core/modules/node/node.module
Returns HTML for a recent node to be displayed in the recent content block.
tracker_page in drupal/core/modules/tracker/tracker.pages.inc
Page callback: Generates a page of tracked nodes for the site.

File

drupal/core/includes/theme.inc, line 2276
The theme system, which controls the output of Drupal.

Code

function theme_mark($variables) {
  $type = $variables['mark_type'];
  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>';
    }
  }
}