You are here

function panels_everywhere_settings_page_submit in Panels Everywhere 6

1 string reference to 'panels_everywhere_settings_page_submit'
panels_everywhere_settings_page in ./panels_everywhere.admin.inc
@file Contains administrative pages for the Panels Everywhere module.

File

./panels_everywhere.admin.inc, line 125
Contains administrative pages for the Panels Everywhere module.

Code

function panels_everywhere_settings_page_submit(&$form, &$form_state) {
  if (empty($form_state['values']['panels_everywhere_site_template_enabled'])) {

    // Automatically unset dependencies.
    $form_state['values']['panels_everywhere_override_blocks'] = FALSE;
    $form_state['values']['panels_everywhere_override_page_tpl'] = FALSE;
  }
  if (empty($form_state['values']['panels_everywhere_override_page_tpl'])) {
    $form_state['values']['panels_everywhere_site_template_per_theme'] = FALSE;
  }
}