You are here

function panelizer_update_7100 in Panelizer 7.3

Same name and namespace in other branches
  1. 7 panelizer.install \panelizer_update_7100()
  2. 7.2 panelizer.install \panelizer_update_7100()

Update the panelizer variable to be more feature module friendly.

File

./panelizer.install, line 375
Install, update and uninstall functions for the panelizer module.

Code

function panelizer_update_7100() {
  $panelizer_defaults = variable_get('panelizer_defaults', array());
  if (!empty($panelizer_defaults)) {
    foreach ($panelizer_defaults as $entity => $bundles) {
      foreach ($bundles as $bundle => $values) {
        variable_set('panelizer_defaults_' . $entity . '_' . $bundle, $values);
      }
    }
  }
  variable_del('panelizer_defaults');
  return t('Updated panelizer variables.');
}