function watchdog_triggers_action_info_alter in Logging and alerts 6.2
Same name and namespace in other branches
- 6 watchdog_triggers/watchdog_triggers.module \watchdog_triggers_action_info_alter()
- 7.2 watchdog_triggers/watchdog_triggers.module \watchdog_triggers_action_info_alter()
- 7 watchdog_triggers/watchdog_triggers.module \watchdog_triggers_action_info_alter()
Implementation of hook_action_info_alter().
File
- watchdog_triggers/
watchdog_triggers.module, line 44 - Provides a Trigger and Action integration for watchdog events.
Code
function watchdog_triggers_action_info_alter(&$info) {
foreach ($info as $type => $data) {
if (stripos($type, "user_") === 0 || stripos($type, "system_") === 0) {
if (isset($info[$type]['hooks']['application'])) {
$info[$type]['hooks']['watchdog_triggers'] = array_merge($info[$type]['hooks']['watchdog_triggers'], array(
'watchdog_logged',
));
}
else {
$info[$type]['hooks']['watchdog_triggers'] = array(
'watchdog_logged',
);
}
}
}
}