You are here

function spambot_update_7102 in Spambot 7

Adds a cache table for storage of StopForumSpam.com responses.

File

./spambot.install, line 110
Install and update hooks for Spambot module.

Code

function spambot_update_7102() {
  if (!db_table_exists('cache_spambot')) {
    $schema = array();
    $schema['cache_spambot'] = drupal_get_schema_unprocessed('system', 'cache');
    $schema['cache_spambot']['description'] = 'Cache table for the Spambot module to store responses from www.stopforumspam.com';
    db_create_table('cache_spambot', $schema['cache_spambot']);
  }
}