function menu_test_init

Implements hook_init().

File

modules/simpletest/tests/menu_test.module, line 385

Code

function menu_test_init() {
  // When requested by one of the MenuTrailTestCase tests, record the initial
  // active trail during Drupal's bootstrap (before the user is redirected to a
  // custom 403 or 404 page). See menu_test_custom_403_404_callback().
  if (variable_get('menu_test_record_active_trail', FALSE)) {
    variable_set('menu_test_active_trail_initial', menu_get_active_trail());
  }
}

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