You are here

function panels_page_export_page in Panels 6.2

1 string reference to 'panels_page_export_page'
panels_page_admin_dynamic_menu_items in panels_page/panels_page.menu.inc

File

panels_page/panels_page.admin.inc, line 613
panels_page.admin.inc

Code

function panels_page_export_page(&$form_state, $panel_page) {
  drupal_set_title(check_plain(panels_page_get_title($panel_page)));
  panels_page_load_include('write');
  $code = panels_page_export($panel_page);
  $lines = substr_count($code, "\n");
  $form = array(
    'output' => array(
      '#title' => t("Export of '@title'", array(
        '@title' => $panel_page->title,
      )),
      '#type' => 'textarea',
      '#default_value' => $code,
      '#rows' => $lines,
    ),
  );
  return $form;
}