function spam_action_info in Spam 6
Implementation of hook_action_info().
File
- ./
spam.module, line 2179 - Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.
Code
function spam_action_info() {
$spam_actions = array();
$spam_types = array(
'node',
'comment',
'user',
);
foreach ($spam_types as $type) {
if (module_exists($type)) {
$spam_actions['spam_mark_' . $type . '_as_spam_action'] = array(
'description' => t('Mark ' . $type . ' as spam'),
'type' => $type,
'configurable' => FALSE,
'hooks' => array(
'any' => TRUE,
),
);
$spam_actions['spam_mark_' . $type . '_as_not_spam_action'] = array(
'description' => t('Mark ' . $type . ' as not spam'),
'type' => $type,
'configurable' => FALSE,
'hooks' => array(
'any' => TRUE,
),
);
}
}
return $spam_actions;
}