You are here

function panels_page_import_page in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_page/panels_page.admin.inc \panels_page_import_page()

Page callback to import a panel page from PHP code.

1 string reference to 'panels_page_import_page'
panels_page_menu in panels_page/panels_page.module
Implementation of hook_menu().

File

panels_page/panels_page.admin.inc, line 821
panels_page.admin.inc

Code

function panels_page_import_page() {
  if ($_POST['form_id'] == 'panels_page_edit_form') {
    $panel_page = unserialize($_SESSION['pp_import']);
    drupal_set_title(t('Import panel page "@s"', array(
      '@s' => $panel_page->title,
    )));
    return drupal_get_form('panels_page_edit_form', $panel_page);
  }
  return drupal_get_form('panels_page_import_form');
}