You are here

function menu_test_menu_trail_callback in Drupal 7

Callback that test menu_test_menu_tree_set_path().

1 string reference to 'menu_test_menu_trail_callback'
menu_test_menu in modules/simpletest/tests/menu_test.module
Implements hook_menu().

File

modules/simpletest/tests/menu_test.module, line 374
Dummy module implementing hook menu.

Code

function menu_test_menu_trail_callback() {
  $menu_path = variable_get('menu_test_menu_tree_set_path', array());
  if (!empty($menu_path)) {
    menu_tree_set_path($menu_path['menu_name'], $menu_path['path']);
  }
  return 'This is menu_test_menu_trail_callback().';
}