function panels_page_wizard_add_layout in Panels 6.3
Same name and namespace in other branches
- 7.3 includes/page-wizard.inc \panels_page_wizard_add_layout()
@file Contains helper functions for the Panels page wizards.
2 calls to panels_page_wizard_add_layout()
- panels_landing_page_basic in plugins/
page_wizards/ landing_page.inc - First page of our page creator wizard.
- panels_node_override_basic in plugins/
page_wizards/ node_override.inc - First page of our page creator wizard.
File
- includes/
page-wizard.inc, line 7 - Contains helper functions for the Panels page wizards.
Code
function panels_page_wizard_add_layout(&$form, &$form_state) {
$form_state['allowed_layouts'] = 'panels_page';
$form_state['display'] = $form_state['cache']->display;
// Tell the Panels form not to display buttons.
$form_state['no buttons'] = TRUE;
// Change the #id of the form so the CSS applies properly.
$form['#id'] = 'panels-choose-layout';
$form['layout_prefix'] = array(
'#value' => '<fieldset><legend>' . t('Layout') . '</legend>',
);
ctools_include('common', 'panels');
ctools_include('display-layout', 'panels');
ctools_include('plugins', 'panels');
$form = array_merge($form, panels_choose_layout($form_state));
$form['layout_suffix'] = array(
'#value' => '</fieldset>',
);
}