You are here

function spam_unpublish in Spam 6

Same name and namespace in other branches
  1. 5.3 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 2149
Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.

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,
  )));
}