function theme_mark

theme_mark($variables)

Returns HTML for a marker for new or updated content.

Parameters

$variables: An associative array containing:

Related topics

File

includes/theme.inc, line 2146
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>';
    }
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/theme_mark/7.x