You are here

function panelizer_settings_page_form_submit in Panelizer 7.3

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_settings_page_form_submit()
  2. 7 includes/admin.inc \panelizer_settings_page_form_submit()
  3. 7.2 includes/admin.inc \panelizer_settings_page_form_submit()

File

includes/admin.inc, line 180
Contains administrative forms and settings.

Code

function panelizer_settings_page_form_submit($form, &$form_state) {
  $plugins = panelizer_get_entity_plugins();
  foreach ($plugins as $entity_type => $plugin) {
    $entity_info = entity_get_info($entity_type);
    if ($entity_info) {
      if ($handler = panelizer_entity_plugin_get_handler($entity_type)) {
        $handler
          ->settings_form_submit($form, $form_state);
      }
    }
  }

  // Ensure that defaults get cached to recognize new settings immediately.
  drupal_flush_all_caches();
}