function panels_mini_ui::edit_form_move in Panels 7.3
Same name and namespace in other branches
- 6.3 panels_mini/plugins/export_ui/panels_mini_ui.class.php \panels_mini_ui::edit_form_move()
When a layout is changed, the user is given the opportunity to move content.
File
- panels_mini/
plugins/ export_ui/ panels_mini_ui.class.php, line 252
Class
- panels_mini_ui
- @file
Code
function edit_form_move(&$form, &$form_state) {
$form_state['display'] =& $form_state['item']->display;
$form_state['layout'] = $form_state['item']->temp_layout;
ctools_include('common', 'panels');
ctools_include('display-layout', 'panels');
ctools_include('plugins', 'panels');
// 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 = panels_change_layout($form, $form_state);
// This form is outside the normal wizard list, so we need to specify the
// previous/next forms.
$form['buttons']['previous']['#next'] = 'layout';
$form['buttons']['next']['#next'] = 'content';
}