You are here

public function EntityTranslationFieldablePanelsPaneHandler::entityForm in Fieldable Panels Panes (FPP) 7

Convert the translation update status fieldset into a vartical tab.

Overrides EntityTranslationDefaultHandler::entityForm

File

includes/translation.handler.fieldable_panels_pane.inc, line 37
Fieldable panels pane translation handler for the translation module.

Class

EntityTranslationFieldablePanelsPaneHandler
Fieldable panels pane translation handler.

Code

public function entityForm(&$form, &$form_state) {
  parent::entityForm($form, $form_state);

  // Move the translation fieldset to a vertical tab.
  if (isset($form['translation'])) {
    $form['translation'] += array(
      '#group' => 'additional_settings',
      '#weight' => 100,
      '#attached' => array(
        'js' => array(
          drupal_get_path('module', 'entity_translation') . '/entity_translation.node-form.js',
        ),
      ),
    );
  }
}