function theme_menu_link


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/
cis7 theme_menu_link(array $variables)
cle7 theme_menu_link(array $variables)
elmsmedia7 theme_menu_link(array $variables)
icor7 theme_menu_link(array $variables)
meedjum_blog7 theme_menu_link(array $variables)
mooc7 theme_menu_link(array $variables)

Returns HTML for a menu link and submenu.


$variables: An associative array containing:

  • element: Structured array data for a menu link.

Related topics

1 theme call to theme_menu_link()
_regions_top_nav_system_path in sites/all/modules/elmsln_contrib/regions/modules/regions_top_nav/regions_top_nav.module
5 string references to the theme hook from theme_menu_link()

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. in sites/all/themes/elmsln_contrib/chamfer/color/
drupal_common_theme in includes/
Provides theme registration for themes across .inc files.
menu_link_save in includes/
Saves a menu link.
menu_tree_output in includes/
Returns a rendered menu tree.
_regions_top_nav_system_path in sites/all/modules/elmsln_contrib/regions/modules/regions_top_nav/regions_top_nav.module


includes/, line 1625
API for the Drupal menu system.


function theme_menu_link(array $variables) {
  $element = $variables['element'];
  $sub_menu = '';

  if ($element['#below']) {
    $sub_menu = drupal_render($element['#below']);
  $output = l($element['#title'], $element['#href'], $element['#localized_options']);
  return '<li' . drupal_attributes($element['#attributes']) . '>' . $output . $sub_menu . "</li>\n";