function page_manager_page_form_export in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 page_manager/plugins/tasks/page.admin.inc \page_manager_page_form_export()
Entry point to export a page.
1 string reference to 'page_manager_page_form_export'
- page_manager_page_build_subtask in page_manager/
plugins/ tasks/ page.inc - Build a subtask array for a given page.
File
- page_manager/
plugins/ tasks/ page.admin.inc, line 1358 - Administrative functions for the page subtasks.
Code
function page_manager_page_form_export(&$form, &$form_state) {
$page = $form_state['page']->subtask['subtask'];
$export = page_manager_page_export($page, $form_state['page']->handlers);
$lines = substr_count($export, "\n");
$form['code'] = array(
'#type' => 'textarea',
'#default_value' => $export,
'#rows' => $lines,
);
unset($form['buttons']);
}