You are here

function mailchimp_update_7201 in Mailchimp 7.2

Implements hook_update_N(). Create cache_mailchimp_user table and delete unused variables.

File

./mailchimp.install, line 80
Install, update and uninstall functions for the mailchimp module.

Code

function mailchimp_update_7201() {

  // create cache_mailchimp_user table
  db_create_table('cache_mailchimp_user', drupal_get_schema_unprocessed('mailchimp', 'cache_mailchimp_user'));

  // delete old unused variables
  variable_del('mailchimp_user_settings_title');
  variable_del('mailchimp_subscription_failure_message');
  variable_del('mailchimp_subscription_success_message');
  variable_del('mailchimp_unsubscription_failure_message');
  variable_del('mailchimp_unsubscription_success_message');
  variable_del('mailchimp_subscribe_page_title');
  variable_del('mailchimp_unsubscribe_page_description');
  variable_del('mailchimp_unsubscribe_page_title');
}