You are here

function spam_publish in Spam 6

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

Invoke publish 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 2160
Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.

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