You are here

function export_node_bulk in Node export 6

Same name and namespace in other branches
  1. 5.2 export.module \export_node_bulk()

Callback for 'export' node operation.

1 string reference to 'export_node_bulk'
export_node_operations in ./export.module
Implementation of hook_node_operations.

File

./export.module, line 125

Code

function export_node_bulk($nodes) {
  module_load_include('inc', 'export', 'export.pages');
  $node_codes = array();
  foreach ($nodes as $nid) {
    $node_codes[] = export_node_export(node_load($nid), TRUE, 1);
  }
  $node_code = "array(\n  " . implode(",\n  ", $node_codes) . ",\n)";
  drupal_set_message(drupal_get_form('export_form', $node_code));
}