You are here

function export_import_form in Node export 5

Same name and namespace in other branches
  1. 5.2 export.pages.inc \export_import_form()
  2. 6 export.pages.inc \export_import_form()

Import Form

1 string reference to 'export_import_form'
export_node_import in ./export.module
Import Node UI

File

./export.module, line 214

Code

function export_import_form() {
  $form['#description'] = t('You may import a node by cut-and-pasting the results of an export node. If the import is successful you will be taken to the Add Node page with all of the settings of the imported node.');
  $form['import_code'] = array(
    '#type' => 'textarea',
    '#title' => t('Import Code'),
    '#default_value' => '',
    '#required' => TRUE,
    '#description' => t('Cut and paste the results of an Export Node here.'),
  );
  $form['#redirect'] = FALSE;
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}