public function PanelizerEntityParagraphsItem::add_bundle_setting_form in Paragraphs 7
1 call to PanelizerEntityParagraphsItem::add_bundle_setting_form()
- PanelizerEntityParagraphsItem::hook_form_alter in plugins/
panelizer/ entity/ PanelizerEntityParagraphsItem.class.php - Implements hook_form_alter().
File
- plugins/
panelizer/ entity/ PanelizerEntityParagraphsItem.class.php, line 90
Class
- PanelizerEntityParagraphsItem
- Panelizer Entity paragraphs item plugin class.
Code
public function add_bundle_setting_form(&$form, &$form_state, $bundle, $type_location) {
// Call parent.
parent::add_bundle_setting_form($form, $form_state, $bundle, $type_location);
// Move panelizer submit handler to the end.
$submit_handler = 'panelizer_entity_default_bundle_form_submit';
if (($index = array_search($submit_handler, $form['#submit'])) !== FALSE) {
unset($form['#submit'][$index]);
$form['#submit'][] = $submit_handler;
}
}