You are here

function node_export_form in Node export 6.2

Same name and namespace in other branches
  1. 6.3 node_export.pages.inc \node_export_form()
  2. 7.3 node_export.pages.inc \node_export_form()

Export Form

3 string references to 'node_export_form'
node_export_file_form_alter in modules/node_export_file/node_export_file.module
Implementation of hook_form_alter().
node_export_node_bulk in ./node_export.module
Callback for 'node_export' node operation.
node_export_node_export in ./node_export.module
Exports a node - populate a node code form set $return_code to TRUE to not return form but the code instead. set $format to some string if encoding should be handled by some module that will recognise the string.

File

./node_export.module, line 446
The Node Export module.

Code

function node_export_form($form_state, $code) {
  $form = array();
  $form['export'] = array(
    '#type' => 'textarea',
    '#title' => t('Node Code'),
    '#default_value' => $code,
    '#rows' => 30,
    '#description' => t('Copy this code and then on the site you want to import to, go to the Import Node link under Content Management, and paste it in there.'),
    '#attributes' => array(
      'style' => 'width: 97%;',
    ),
  );
  return $form;
}