You are here

public function PanelizerEntityParagraphsItem::hook_field_attach_form in Paragraphs 7

Implements hook_field_attach_form().

File

plugins/panelizer/entity/PanelizerEntityParagraphsItem.class.php, line 156

Class

PanelizerEntityParagraphsItem
Panelizer Entity paragraphs item plugin class.

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