function 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

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;
}