You are here

function panels_mini_import_mini in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \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.admin.inc
Implementation of hook_menu().

File

panels_mini/panels_mini.admin.inc, line 292
Administrative items for the 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');
}