1 menu_test.module menu_test_menu_trail_callback()

Callback that test menu_test_menu_tree_set_path().

File

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

Code

function menu_test_menu_trail_callback() {
  $menu_path = state_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().';
}