function panelizer_update_7100 in Panelizer 7.2
Same name and namespace in other branches
- 7.3 panelizer.install \panelizer_update_7100()
- 7 panelizer.install \panelizer_update_7100()
Update the panelizer variable to be more feature module friendly.
File
- ./
panelizer.install, line 224 - 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.');
}