You are here

public function PanelizerEntityConfigPages::hook_field_attach_form in Config Pages 7

Implements hook_field_attach_form().

File

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

Class

PanelizerEntityConfigPages
Panelizer class for config pages.

Code

public function hook_field_attach_form($entity, &$form, &$form_state, $langcode) {
  parent::hook_field_attach_form($entity, $form, $form_state, $langcode);

  // Remove '#group' property, so panelizer settings won't be merged into
  // vertical tabs on node forms.
  if (isset($form['panelizer']['#group'])) {
    $form['panelizer']['#group'] = NULL;
  }
}