You are here

function spam_publish in Spam 5.3

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

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

1 call to spam_publish()
spam_mark_as_not_spam in ./spam.module
Invoke appropriate actions for marking content as not spam. TODO: Integrate with the Actions module, making actions fully configurable.

File

./spam.module, line 2040

Code

function spam_publish($type, $id, $extra = array()) {
  spam_log(SPAM_VERBOSE, 'spam_publish', t('published'), $type, $id);
  spam_invoke_module($type, 'publish', $id, $extra);
  cache_clear_all();
  spam_update_statistics(t('publish @type', array(
    '@type' => $type,
  )));
}