function spam_reported_nodes_operations in Spam 5
Return the function to call dependant on the $action requested.
1 call to spam_reported_nodes_operations()
- spam_reported_nodes_overview_submit in ./
spam.module - Submit code for the spam_reported_nodes_overview form/function
File
- ./
spam.module, line 2445
Code
function spam_reported_nodes_operations($action = 'NOTHING') {
switch ($action) {
case 'IGNORE':
$operation = 'spam_reported_ignore';
break;
case 'SPAM':
$operation = 'spam_reported_spam';
break;
case 'DELETE':
$operation = 'spam_reported_delete';
break;
default:
$operation = 'spam_donothing_node';
// do nothing if we don't know what to do
break;
}
return $operation;
}