function theme_mark

7.x theme.inc theme_mark($variables)
5.x theme.inc theme_mark($type = MARK_NEW)
6.x theme.inc theme_mark($type = MARK_NEW)

Returns HTML for a marker for new or updated content.

Parameters

$variables: An associative array containing:

Related topics

3 theme calls to theme_mark()
node_admin_nodes in drupal/modules/node/node.admin.inc
Form builder: Builds the node administration overview.
theme_node_recent_content in drupal/modules/node/node.module
Returns HTML for a recent node to be displayed in the recent content block.
tracker_page in drupal/modules/tracker/tracker.pages.inc
Page callback: prints a listing of active nodes on the site.
5 string references to the theme hook from theme_mark()

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in drupal/includes/common.inc
Provides theme registration for themes across .inc files.
filter_xss_admin in drupal/includes/common.inc
Applies a very permissive XSS/HTML filter for admin-only use.
node_admin_nodes in drupal/modules/node/node.admin.inc
Form builder: Builds the node administration overview.
theme_node_recent_content in drupal/modules/node/node.module
Returns HTML for a recent node to be displayed in the recent content block.
tracker_page in drupal/modules/tracker/tracker.pages.inc
Page callback: prints a listing of active nodes on the site.

File

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