function panels_mini_ui::edit_form_content in Panels 6.3
Same name and namespace in other branches
- 7.3 panels_mini/plugins/export_ui/panels_mini_ui.class.php \panels_mini_ui::edit_form_content()
File
- panels_mini/
plugins/ export_ui/ panels_mini_ui.class.php, line 259
Class
Code
function edit_form_content(&$form, &$form_state) {
ctools_include('ajax');
ctools_include('plugins', 'panels');
ctools_include('display-edit', 'panels');
ctools_include('context');
// If we are cloning an item, we MUST have this cached for this to work,
// so make sure:
if ($form_state['form type'] == 'clone' && empty($form_state['item']->export_ui_item_is_cached)) {
$this
->edit_cache_set($form_state['item'], 'clone');
}
$cache = panels_edit_cache_get('panels_mini:' . $this
->edit_cache_get_key($form_state['item'], $form_state['form type']));
$form_state['renderer'] = panels_get_renderer_handler('editor', $cache->display);
$form_state['renderer']->cache =& $cache;
$form_state['display'] =& $cache->display;
$form_state['content_types'] = $cache->content_types;
// Tell the Panels form not to display buttons.
$form_state['no buttons'] = TRUE;
$form_state['display_title'] = !empty($cache->display_title);
$form = array_merge($form, panels_edit_display_form($form_state));
// Make sure the theme will work since our form id is different.
$form['#theme'] = 'panels_edit_display_form';
}