You are here

function spam_reported_comment_operations in Spam 5

Return the function to call dependant on the $action requested.

1 call to spam_reported_comment_operations()
spam_reported_comments_overview_submit in ./spam.module
Submit code for the spam_reported_comments_overview form/function

File

./spam.module, line 2297

Code

function spam_reported_comment_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_comment';

      // do nothing if we don't know what to do
      break;
  }
  return $operation;
}