function panels_mini_edit_layout in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_mini/panels_mini.admin.inc \panels_mini_edit_layout()
Pass through to the panels layout editor.
1 string reference to 'panels_mini_edit_layout'
- panels_mini_menu_items in panels_mini/
panels_mini.module
File
- panels_mini/
panels_mini.module, line 754 - panels_mini.module
Code
function panels_mini_edit_layout($panel_mini) {
if (!is_object($panel_mini)) {
$panel_mini = panels_mini_load($panel_mini);
}
$output = panels_edit_layout($panel_mini->display, t('Save'));
if (is_object($output)) {
$panel_mini->display = $output;
$panel_mini->did = $output->did;
panels_mini_save($panel_mini);
drupal_goto("admin/panels/panel-mini/{$panel_mini->name}/edit/layout");
}
drupal_set_title(check_plain($panel_mini->title));
return $output;
}