1 block.page_components.inc PageComponents::formSubmit($form, &$form_state)

Submit handler to save the form settings.

Overrides Block::formSubmit

File

core/modules/system/block.page_components.inc, line 117

Class

PageComponents
PageComponents extends Block

Code

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

  // This block never displays a block title, as it would result in things
  // like a title on the title component.
  $this->settings['title_display'] = LAYOUT_TITLE_NONE;
  $this->settings['title'] = '';

  if (isset($form_state['values']['title_wrapper']['title_tag'])) {
    $this->settings['title_tag'] = $form_state['values']['title_wrapper']['title_tag'];
  }
  if (isset($form_state['values']['title_wrapper']['title_classes'])) {
    $this->settings['title_classes'] = $form_state['values']['title_wrapper']['title_classes'];
  }
  if (isset($form_state['values']['tabs']['tab_type'])) {
    $this->settings['tab_type'] = $form_state['values']['tabs']['tab_type'];
  }
}