theme_mark

  1. drupal
    1. 6 theme.inc function
    2. 7 theme.inc function
Drupal 7 theme_mark($variables)

Returns HTML for a marker for new or updated content.

Parameters

$variables: An associative array containing:

Related topics

4 theme calls to theme_mark()

File

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

Code

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