function menu_test_menu_trail_callback

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

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().';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.