You are here

function panels_mini_import_form in Panels 5.2

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

Form for the mini panel import.

1 string reference to 'panels_mini_import_form'
panels_mini_import_mini in panels_mini/panels_mini.module
Page callback to import a mini panel from PHP code.

File

panels_mini/panels_mini.module, line 377
panels_mini.module

Code

function panels_mini_import_form() {
  $form['panel_mini'] = array(
    '#type' => 'textarea',
    '#title' => t('Panel mini code'),
    '#cols' => 60,
    '#rows' => 15,
    '#description' => t('Cut and paste the results of an exported mini panel here.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  $form['#redirect'] = NULL;
  return $form;
}