You are here

function seckit_update_7107 in Security Kit 7

Remove x_content_type from seckit_xss variable.

File

./seckit.install, line 168
Install/update/uninstall actions for SecKit.

Code

function seckit_update_7107() {

  // Load variables directly from the db without any $conf overrides.
  $variables = variable_initialize(array());
  if (isset($variables['seckit_xss']['x_content_type'])) {
    $seckit_xss = $variables['seckit_xss'];
    unset($seckit_xss['x_content_type']);
    variable_set('seckit_xss', $seckit_xss);
    return t('Removed x_content_type from the seckit_xss variable.');
  }
}