function _menu_get_options

cis7 menu.module _menu_get_options($menus, $available_menus, $item)
cle7 menu.module _menu_get_options($menus, $available_menus, $item)
elmsmedia7 menu.module _menu_get_options($menus, $available_menus, $item)
icor7 menu.module _menu_get_options($menus, $available_menus, $item)
meedjum_blog7 menu.module _menu_get_options($menus, $available_menus, $item)
mooc7 menu.module _menu_get_options($menus, $available_menus, $item)

Helper function to get the items of the given menu.

2 calls to _menu_get_options()
menu_parent_options in modules/menu/menu.module
Return a list of menu items that are valid possible parents for the given menu item.
menu_parent_options_js in modules/menu/menu.module
Page callback. Get all the available menus and menu items as a JavaScript array.

File

modules/menu/menu.module, line 403
Allows administrators to customize the site's navigation menus.

Code

function _menu_get_options($menus, $available_menus, $item) {
  // If the item has children, there is an added limit to the depth of valid parents.
  if (isset($item['parent_depth_limit'])) {
    $limit = $item['parent_depth_limit'];
  }
  else {
    $limit = _menu_parent_depth_limit($item);
  }

  $options = array();
  foreach ($menus as $menu_name => $title) {
    if (isset($available_menus[$menu_name])) {
      $tree = menu_tree_all_data($menu_name, NULL);
      $options[$menu_name . ':0'] = '<' . $title . '>';
      _menu_parents_recurse($tree, $menu_name, '--', $options, $item['mlid'], $limit);
    }
  }
  return $options;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.