function 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 1374

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']);
    return $form;
}