Full ELMS Learning Network documentation
function theme_mark
×
Error message
User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).cis7 theme.inc | theme_mark($variables) |
cle7 theme.inc | theme_mark($variables) |
elmsmedia7 theme.inc | theme_mark($variables) |
icor7 theme.inc | theme_mark($variables) |
meedjum_blog7 theme.inc | theme_mark($variables) |
mooc7 theme.inc | 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
4 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.
- views_handler_field_history_user_timestamp::render in sites/
all/ modules/ ulmus/ views/ modules/ node/ views_handler_field_history_user_timestamp.inc - Render the field.
10 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 includes/
common.inc - Provides theme registration for themes across .inc files.
- filter_xss_admin in includes/
common.inc - Applies a very permissive XSS/HTML filter for admin-only use.
- 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 2054 - 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>';
}
}
}