Full ELMS Learning Network documentation
function theme_menu_local_action
×
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 menu.inc | theme_menu_local_action($variables) |
cle7 menu.inc | theme_menu_local_action($variables) |
elmsmedia7 menu.inc | theme_menu_local_action($variables) |
icor7 menu.inc | theme_menu_local_action($variables) |
meedjum_blog7 menu.inc | theme_menu_local_action($variables) |
mooc7 menu.inc | theme_menu_local_action($variables) |
Returns HTML for a single local action link.
Parameters
$variables: An associative array containing:
- element: A render element containing:
- #link: A menu link array with 'title', 'href', and 'localized_options' keys.
Related topics
9 string references to the theme hook from theme_menu_local_action()
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.
- blog_menu_local_tasks_alter in modules/
blog/ blog.module - Implements hook_menu_local_tasks_alter().
- drupal_common_theme in includes/
common.inc - Provides theme registration for themes across .inc files.
- file_entity_menu_local_tasks_alter in sites/
all/ modules/ ulmus/ file_entity/ file_entity.module - Implements hook_menu_local_tasks_alter().
- forum_menu_local_tasks_alter in modules/
forum/ forum.module - Implements hook_menu_local_tasks_alter().
- MediaEntityTranslationHandler::entityForm in sites/
all/ modules/ ulmus/ media/ includes/ MediaEntityTranslationHandler.inc - Entity form handler.
File
- includes/
menu.inc, line 1679 - API for the Drupal menu system.
Code
function theme_menu_local_action($variables) {
$link = $variables['element']['#link'];
$output = '<li>';
if (isset($link['href'])) {
$output .= l($link['title'], $link['href'], isset($link['localized_options']) ? $link['localized_options'] : array());
}
elseif (!empty($link['localized_options']['html'])) {
$output .= $link['title'];
}
else {
$output .= check_plain($link['title']);
}
$output .= "</li>\n";
return $output;
}