You are here

function _custom_upgrade in Spam 5.3

Upgrade from 5.x-1.x spam module. This doesn't live in the custom.install file, as there was no custom.module in the 5.x-1.x release (it was part of the core spam module). This doesn't live in spam.install because the spam_custom table isn't created there.

1 call to _custom_upgrade()
theme_custom_admin_settings in filters/custom/custom.module
Format the custom filter admin page.

File

filters/custom/custom.module, line 574

Code

function _custom_upgrade() {
  if (variable_get('spam_custom_upgrade', 1) == 1) {
    require_once drupal_get_path('module', 'custom') . '/custom-upgrade.inc';
    custom_upgrade();
    variable_set('spam_custom_upgrade', 0);
    drupal_goto('admin/settings/spam/filters/custom');
  }
}