function panels_landing_page_basic_submit in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/page_wizards/landing_page.inc \panels_landing_page_basic_submit()
Submit function to store the form data in our cache.
File
- plugins/
page_wizards/ landing_page.inc, line 205
Code
function panels_landing_page_basic_submit(&$form, &$form_state) {
$cache =& $form_state['wizard cache'];
$cache->name = $form_state['values']['name'];
$cache->admin_title = $form_state['values']['admin_title'];
$cache->admin_description = $form_state['values']['admin_description'];
$cache->path = $form_state['values']['path'];
$cache->menu_entry = $form_state['values']['menu_entry'];
$cache->menu['title'] = $form_state['values']['menu']['title'];
$cache->menu['weight'] = $form_state['values']['menu']['weight'];
$cache->menu['name'] = $form_state['values']['menu']['name'];
$cache->menu['type'] = $cache->menu_entry ? 'normal' : 'none';
$cache->display->layout = $form_state['values']['layout'];
$cache->display->title = $form_state['values']['admin_title'];
}