function onthisdate_menu_alter in Logging and alerts 6
Same name and namespace in other branches
- 6.2 watchdog_triggers/watchdog_triggers.module \onthisdate_menu_alter()
- 7.2 watchdog_triggers/watchdog_triggers.module \onthisdate_menu_alter()
- 7 watchdog_triggers/watchdog_triggers.module \onthisdate_menu_alter()
Implementation of hook_menu_alter().
Work around loss of menu local task inheritance.
File
- watchdog_triggers/
watchdog_triggers.module, line 139 - Provides a Trigger and Action integration for watchdog events.
Code
function onthisdate_menu_alter(&$callbacks) {
if (module_exists('trigger') & isset($callbacks['admin/build/trigger/watchdog_triggers'])) {
$callbacks['admin/build/trigger/watchdog_triggers']['access callback'] = 'trigger_access_check';
}
}