function panels_page_edit_context in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.admin.inc \panels_page_edit_context()
Edit advanced settings of a panel page.
1 string reference to 'panels_page_edit_context'
- 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 581 - panels_page.admin.inc
Code
function panels_page_edit_context($name, $next = NULL) {
if (!empty($_POST)) {
$panel_page = panels_common_cache_get('panel_object:panel_page', $name);
}
else {
$panel_page = panels_page_load($name);
panels_common_cache_set('panel_object:panel_page', $name, $panel_page);
}
drupal_set_title(check_plain(panels_page_get_title($panel_page)));
return drupal_get_form('panels_page_context_form', $panel_page, $next);
}