You are here

function panels_mini_import_mini in Panels 5.2

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

Page callback to import a mini panel from PHP code.

1 string reference to 'panels_mini_import_mini'
panels_mini_menu in panels_mini/panels_mini.module
Implementation of hook_menu().

File

panels_mini/panels_mini.module, line 364
panels_mini.module

Code

function panels_mini_import_mini() {
  if ($_POST['form_id'] == 'panels_mini_edit_form') {
    $panel_mini = unserialize($_SESSION['pm_import']);
    drupal_set_title(t('Import panel mini "@s"', array(
      '@s' => $panel_mini->title,
    )));
    return drupal_get_form('panels_mini_edit_form', $panel_mini);
  }
  return drupal_get_form('panels_mini_import_form');
}