public function PanelizerEntityDefault::settings_form_submit in Panelizer 7.2
Same name and namespace in other branches
- 7.3 plugins/entity/PanelizerEntityDefault.class.php \PanelizerEntityDefault::settings_form_submit()
Submit entity specific settings on the Panelizer settings form.
Overrides PanelizerEntityInterface::settings_form_submit
File
- plugins/
entity/ PanelizerEntityDefault.class.php, line 1528 - Base class for the Panelizer Entity plugin.
Class
- PanelizerEntityDefault
- Base class for the Panelizer Entity plugin.
Code
public function settings_form_submit(&$form, &$form_state) {
if (empty($form_state['values']['entities'][$this->entity_type])) {
return;
}
foreach ($form_state['values']['entities'][$this->entity_type] as $bundle => $values) {
variable_set('panelizer_defaults_' . $this->entity_type . '_' . $bundle, $values);
}
// @todo if we enable caching of the plugins, which we should, this
// needs to clear that cache so they get reloaded.
}