You are here

function panels_mini_edit in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \panels_mini_edit()

Edit a mini panel.

Called from both the add and edit points to provide for common flow.

1 call to panels_mini_edit()
panels_mini_add_page in panels_mini/panels_mini.admin.inc
Handle the add mini panel page.
1 string reference to 'panels_mini_edit'
_panels_mini_menu in panels_mini/panels_mini.admin.inc
Implementation of hook_menu().

File

panels_mini/panels_mini.admin.inc, line 382
Administrative items for the panels mini module.

Code

function panels_mini_edit($panel_mini) {
  if (!is_object($panel_mini)) {
    $panel_mini = panels_mini_load($panel_mini);
  }
  if ($panel_mini) {
    drupal_set_title(check_plain($panel_mini->title));
  }
  return drupal_get_form('panels_mini_edit_form', $panel_mini);
}