function panelizer_update_7100 in Panelizer 7
Same name and namespace in other branches
- 7.3 panelizer.install \panelizer_update_7100()
- 7.2 panelizer.install \panelizer_update_7100()
Implements hook_update_N().
File
- ./
panelizer.install, line 197 - 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');
}