You are here

function panels_page_edit in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_page/panels_page.admin.inc \panels_page_edit()

Edit a panel page.

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

1 string reference to 'panels_page_edit'
panels_page_admin_menu_items in panels_page/panels_page.module
Helper function to add a menu item for a panel.

File

panels_page/panels_page.admin.inc, line 210
panels_page.admin.inc

Code

function panels_page_edit($panel_page) {
  if (!is_object($panel_page)) {
    $panel_page = panels_page_load($panel_page);
  }
  if (empty($panel_page->display)) {
    $panel_page->display = panels_load_display($panel_page->did);
  }
  drupal_set_title(check_plain(panels_page_get_title($panel_page)));
  return drupal_get_form('panels_page_edit_form', $panel_page);
}