theme_mark

  1. drupal
    1. 4.7 theme.inc
    2. 5 theme.inc
    3. 6
    4. 7
Versions
4.7 – 6 theme_mark($type = MARK_NEW)
7 theme_mark($variables)

Returns HTML for a marker for new or updated content.

Parameters

$variables An associative array containing:

  • type: Number representing the marker type to display. See MARK_NEW, MARK_UPDATED, MARK_READ.

Related topics

Code

drupal/includes/theme.inc, line 1770

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