Révision cd5c298a
Ajouté par Geoffroy Desvernay il y a environ 5 ans
drupal7/includes/menu.inc | ||
---|---|---|
576 | 576 |
// 'load arguments' in the hook_menu() entry, but they need |
577 | 577 |
// some processing. In this case the $function is the key to the |
578 | 578 |
// load_function array, and the value is the list of arguments. |
579 |
list($function, $args) = each($function); |
|
579 |
$args = current($function); |
|
580 |
$function = key($function); |
|
580 | 581 |
$load_functions[$index] = $function; |
581 | 582 |
|
582 | 583 |
// Some arguments are placeholders for dynamic items to process. |
... | ... | |
2402 | 2403 |
// a stripped down menu tree containing the active trail only, in case |
2403 | 2404 |
// the given menu has not been built in this request yet. |
2404 | 2405 |
$tree = menu_tree_page_data($preferred_link['menu_name'], NULL, TRUE); |
2405 |
list($key, $curr) = each($tree); |
|
2406 |
$curr = current($tree); |
|
2407 |
next($tree); |
|
2406 | 2408 |
} |
2407 | 2409 |
// There is no link for the current path. |
2408 | 2410 |
else { |
... | ... | |
2432 | 2434 |
} |
2433 | 2435 |
$tree = $curr['below'] ? $curr['below'] : array(); |
2434 | 2436 |
} |
2435 |
list($key, $curr) = each($tree); |
|
2437 |
$curr = current($tree); |
|
2438 |
next($tree); |
|
2436 | 2439 |
} |
2437 | 2440 |
// Make sure the current page is in the trail to build the page title, by |
2438 | 2441 |
// appending either the preferred link or the menu router item for the |
Formats disponibles : Unified diff
MAJ 7.60 -> 7.62