function insight_alert_active_operation in Insight 7
1 string reference to 'insight_alert_active_operation'
- insight_menu in ./
insight.module - Implements hook.().
File
- ./
insight.reports.inc, line 72
Code
function insight_alert_active_operation($alert, $op) {
//dsm($alert);
//dsm($op);
$analyzer_defs = insight_analyzer_info(TRUE);
$report_defs = $analyzer_defs['#meta']['reports'];
if (function_exists('insight_alert_' . $op)) {
call_user_func('insight_alert_' . $op, $alert['iaid']);
$msg = t('@report_title report has been @op.', array(
'@report_title' => $report_defs[$alert['report']]['title'],
'@op' => $op == 'dismiss' ? 'removed' : ($op == 'ignore' ? 'marked ignore' : 'activated'),
));
drupal_set_message($msg);
}
drupal_goto($_GET['destination']);
}