You are here

function hook_node_import_global in Node import 5

Provides form fields which will have the same user-specified value across one import.

Parameters

$type: A string containing the node type currently being processed.

$global_values: An array with the previously filled in global options values.

Return value

A string containing the form which will be provided to the user.

6 functions implement hook_node_import_global()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

content_node_import_global in supported/cck/content.inc
Implementation of hook_node_import_global().
event_node_import_global in supported/event.inc
Implementation of hook_node_import_global().
node_node_import_global in supported/node.inc
Implementation of hook_node_import_global().
premium_node_import_global in supported/premium.inc
Implementation of hook_node_import_global().
product_node_import_global in supported/ecommerce/product.inc
Implementation of hook_node_import_global().

... See full list

2 invocations of hook_node_import_global()
product_node_import_global in supported/ecommerce/product.inc
Implementation of hook_node_import_global().
_node_import_options in ./node_import.module

File

docs/node_import_hook_docs.php, line 94
Documentation for hooks provided by the node_import module.

Code

function hook_node_import_global($type, $global_values) {
  if ($type == 'story') {

    // Story nodes implement taxonomy.
    return implode('', taxonomy_node_form('story'));
  }
}