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