1 menu_test.module | menu_test_custom_403_404_callback() |
Callback for our custom 403 and 404 pages.
File
- core/
modules/ simpletest/ tests/ menu_test.module, line 418 - Dummy module implementing hook menu.
Code
function menu_test_custom_403_404_callback() {
// When requested by one of the MenuTrailTestCase tests, record the final
// active trail now that the user has been redirected to the custom 403 or
// 404 page. See menu_test_init().
if (state_get('menu_test_record_active_trail', FALSE)) {
state_set('menu_test_active_trail_final', menu_get_active_trail());
}
return 'This is menu_test_custom_403_404_callback().';
}