You are here

function spam_unpublish in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \spam_unpublish()

Invoke unpublish action for given content type. TODO: Integrate with the Actions module.

2 calls to spam_unpublish()
spam_mark_as_spam in ./spam.module
Invoke appropriate actions for marking content as spam. TODO: Integrate with the Actions module, making actions fully configurable.
spam_scan in ./spam.module
API call for scanning content for spam. If spam is found, the appropriate action will be taken.

File

./spam.module, line 2029

Code

function spam_unpublish($type, $id, $extra = array()) {
  spam_log(SPAM_VERBOSE, 'spam_unpublish', t('unpublished'), $type, $id);
  spam_invoke_module($type, 'unpublish', $id, $extra);
  cache_clear_all();
  spam_update_statistics(t('unpublish @type', array(
    '@type' => $type,
  )));
}