You are here

function page_manager_handler_export in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 page_manager/page_manager.admin.inc \page_manager_handler_export()

Entry point to export a page.

1 string reference to 'page_manager_handler_export'
page_manager_get_handler_operations in page_manager/page_manager.admin.inc
Collect all the operations related to task handlers (variants) and build a menu.

File

page_manager/page_manager.admin.inc, line 1652
Administrative functions for the page manager.

Code

function page_manager_handler_export($form, &$form_state) {
  $export = page_manager_export_task_handler($form_state['handler']);
  $lines = substr_count($export, "\n");
  $form['code'] = array(
    '#type' => 'textarea',
    '#default_value' => $export,
    '#rows' => $lines,
  );
  unset($form['buttons']);
  return $form;
}