function panels_edit_cache_settings_form in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/display_edit.inc \panels_edit_cache_settings_form()
- 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_edit_cache_settings_form()
- 7.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_edit_cache_settings_form()
Cache settings form
Related topics
1 string reference to 'panels_edit_cache_settings_form'
- panels_ajax_cache_settings in includes/
display-edit.inc - Handle the cache settings form
File
- includes/
display-edit.inc, line 893
Code
function panels_edit_cache_settings_form(&$form_state) {
$display =& $form_state['display'];
$conf =& $form_state['conf'];
$pid = $form_state['pid'];
$info = panels_get_cache($conf['method']);
$form['description'] = array(
'#prefix' => '<div class="description">',
'#suffix' => '</div>',
'#value' => check_plain($info['description']),
);
$function = panels_plugin_get_function('cache', $conf['method'], 'settings form');
$form['settings'] = $function($conf['settings'], $display, $pid);
$form['settings']['#tree'] = TRUE;
$form['method'] = array(
'#type' => 'hidden',
'#value' => $method,
);
$form['display'] = array(
'#type' => 'value',
'#value' => $display,
);
$form['pid'] = array(
'#type' => 'value',
'#value' => $pid,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save'),
);
return $form;
}