function panels_panel_context_edit_choose_submit in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/task_handlers/panel_context.inc \panels_panel_context_edit_choose_submit()
A layout has been selected, set it up.
File
- plugins/
task_handlers/ panel_context.inc, line 564 - This is the task handler plugin to handle attaching a panel to any task that advertises itself as a 'context' type, which all of the basic page tasks provided by page_manager.module do by default.
Code
function panels_panel_context_edit_choose_submit(&$form, &$form_state) {
$form_state['display']->layout = $form_state['values']['layout'];
$form_state['handler']->conf['display'] = $form_state['display'];
if (isset($form_state['page']->display_cache[$form_state['handler_id']])) {
$form_state['page']->display_cache[$form_state['handler_id']]->display = $form_state['display'];
}
}