function panels_edit_cache_settings_form_submit in Panels 5.2
Same name and namespace in other branches
- 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_edit_cache_settings_form_submit()
- 6.2 includes/display-edit.inc \panels_edit_cache_settings_form_submit()
- 7.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_edit_cache_settings_form_submit()
Allows panel styles to validate their style settings.
File
- includes/
display_edit.inc, line 1360
Code
function panels_edit_cache_settings_form_submit($form_id, $form_values) {
if ($function = panels_plugin_get_function('cache', $form_values['method'], 'settings form submit')) {
$function($form_values['settings']);
}
// Identify which configuration we're setting
$pid = $form_values['pid'];
$display = $form_values['display'];
panels_ajax_set_cache_data($display, $pid, $form_values['method'], $form_values['settings']);
return $display;
}