public function PanelizerEntityNode::add_bundle_setting_form_validate in Panelizer 7.3
Validate callback for the bundle edit form.
Overrides PanelizerEntityDefault::add_bundle_setting_form_validate
File
- plugins/
entity/ PanelizerEntityNode.class.php, line 189 - Class for the Panelizer node entity plugin.
Class
- PanelizerEntityNode
- Panelizer Entity node plugin class.
Code
public function add_bundle_setting_form_validate($form, &$form_state, $bundle, $type_location) {
// Ensure that revisions are enabled if Panelizer revisions are.
if (isset($form_state['values']['node_options']['panelizer']) || array_key_exists('panelizer', $form_state['values']['node_options'])) {
$form_state['values']['node_options']['revision'] = 1;
}
parent::add_bundle_setting_form_validate($form, $form_state, $bundle, $type_location);
}