You are here

function disclaimer_update_7100 in Disclaimer 7

Set default region footer to handle disclaimer content.

File

./disclaimer.install, line 53
Install and Uninstall processes for disclaimer.

Code

function disclaimer_update_7100(&$sandbox) {
  $current_theme = variable_get('theme_default', NULL);
  $regions = system_region_list($current_theme, REGIONS_VISIBLE);
  if (isset($regions['footer'])) {
    variable_set('disclaimer_region', 'footer');
  }
}