You are here

function pagerer_update_7100 in Pagerer 7

Update Pagerer variable and themes.

File

./pagerer.install, line 47
Pagerer install

Code

function pagerer_update_7100() {

  // Ensure latest theme definitions are loaded in registry.
  drupal_theme_rebuild();

  // Get rid of any leftover 'tags' keys in pagerer variable.
  $vars = variable_get('pagerer', array());
  if (isset($vars['tags'])) {
    unset($vars['tags']);
  }
  foreach (array(
    'left_pane',
    'center_pane',
    'right_pane',
  ) as $p) {
    if (isset($vars[$p]['theme_variables']['tags'])) {
      unset($vars[$p]['theme_variables']['tags']);
    }
  }
  variable_set('pagerer', $vars);
}