function theme_mark
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
3 theme calls to theme_mark()
- node_admin_nodes in modules/
node/ node.admin.inc - Form builder: Builds the node administration overview.
- theme_node_recent_content in modules/
node/ node.module - Returns HTML for a recent node to be displayed in the recent content block.
- tracker_page in modules/
tracker/ tracker.pages.inc - Page callback: prints a listing of active nodes on the site.
File
-
includes/
theme.inc, line 2186
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>';
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.