function page_manager_edit_page in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 page_manager/page_manager.admin.inc \page_manager_edit_page()
Render the edit page for a a page, custom or system.
1 string reference to 'page_manager_edit_page'
- page_manager_menu in page_manager/
page_manager.module - Delegated implementation of hook_menu().
File
- page_manager/
page_manager.admin.inc, line 413 - Administrative functions for the page manager.
Code
function page_manager_edit_page($page) {
drupal_set_title($page->subtask['admin title'], PASS_THROUGH);
// Provide and process the save page form before anything else.
$form_state = array(
'page' => &$page,
);
$built_form = drupal_build_form('page_manager_save_page_form', $form_state);
$form = drupal_render($built_form);
$operations = page_manager_get_operations($page);
$args = array(
'summary',
);
$rendered_operations = page_manager_render_operations($page, $operations, $args, array(
'class' => array(
'operations-main',
),
), 'nav');
$content = page_manager_get_operation_content(FALSE, $page, $args, $operations);
$output = theme('page_manager_edit_page', array(
'page' => $page,
'save' => $form,
'operations' => $rendered_operations,
'content' => $content,
));
return array(
'#markup' => $output,
);
}