function _menu_link_map_translate


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 _menu_link_map_translate(&$map, $to_arg_functions)
cle7 _menu_link_map_translate(&$map, $to_arg_functions)
elmsmedia7 _menu_link_map_translate(&$map, $to_arg_functions)
icor7 _menu_link_map_translate(&$map, $to_arg_functions)
meedjum_blog7 _menu_link_map_translate(&$map, $to_arg_functions)
mooc7 _menu_link_map_translate(&$map, $to_arg_functions)

Translates the path elements in the map using any to_arg helper function.


$map: An array of path arguments; for example, array('node', '5').

$to_arg_functions: An array of helper functions; for example, array(2 => 'menu_tail_to_arg').

See also


Related topics

3 calls to _menu_link_map_translate()
_menu_link_translate in includes/
Provides menu link access control, translation, and argument handling.
_menu_translate in includes/
Handles dynamic path translation and menu access control.
_token_menu_link_translate in sites/all/modules/ulmus/token/token.module


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


function _menu_link_map_translate(&$map, $to_arg_functions) {
  $to_arg_functions = unserialize($to_arg_functions);
  foreach ($to_arg_functions as $index => $function) {
    // Translate place-holders into real values.
    $arg = $function(!empty($map[$index]) ? $map[$index] : '', $map, $index);
    if (!empty($map[$index]) || isset($arg)) {
      $map[$index] = $arg;
    else {