function panelizer_settings_page_form_submit in Panelizer 7.2
Same name and namespace in other branches
- 6 includes/admin.inc \panelizer_settings_page_form_submit()
- 7.3 includes/admin.inc \panelizer_settings_page_form_submit()
- 7 includes/admin.inc \panelizer_settings_page_form_submit()
File
- includes/
admin.inc, line 192 - 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();
}