You are here

public function PanelizerEntityConfigPages::add_bundle_setting_form in Config Pages 7

1 call to PanelizerEntityConfigPages::add_bundle_setting_form()
PanelizerEntityConfigPages::hook_form_alter in plugins/panelizer/entity/PanelizerEntityConfigPages.class.php
Implements hook_form_alter().

File

plugins/panelizer/entity/PanelizerEntityConfigPages.class.php, line 115
Class definition.

Class

PanelizerEntityConfigPages
Panelizer class for config pages.

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;
  }
}