You are here

function page_manager_edit_page in Chaos Tool Suite (ctools) 6

Same name and namespace in other branches
  1. 7 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 386
Administrative functions for the page manager.

Code

function page_manager_edit_page($page) {
  ctools_include('form');
  drupal_set_title($page->subtask['admin title']);

  // Provide and process the save page form before anything else.
  $form_state = array(
    'page' => &$page,
  );
  $form = ctools_build_form('page_manager_save_page_form', $form_state);
  $operations = page_manager_get_operations($page);
  $args = array(
    'summary',
  );
  $rendered_operations = page_manager_render_operations($page, $operations, $args, array(
    'class' => 'operations-main',
  ), 'nav');
  $content = page_manager_get_operation_content(FALSE, $page, $args, $operations);
  $output = theme('page_manager_edit_page', $page, $form, $rendered_operations, $content);
  return $output;
}