You are here

function hook_node_import_static in Node import 5

Provides a list of values which are static for all node imports of a given type.

Parameters

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

Return value

An associative array containing node object children names => values.

5 functions implement hook_node_import_static()

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

auto_nodetitle_node_import_static in supported/auto_nodetitle.inc
Implementation of hook_node_import_static().
book_node_import_static in supported/book.inc
Implementation of hook_node_import_static().
event_node_import_static in supported/event.inc
Implementation of hook_node_import_static().
flexinode_node_import_static in supported/flexinode.inc
Implementation of hook_node_import_static().
product_node_import_static in supported/ecommerce/product.inc
Implementation of hook_node_import_static().
2 invocations of hook_node_import_static()
product_node_import_static in supported/ecommerce/product.inc
Implementation of hook_node_import_static().
_node_import_get_nodes in ./node_import.module
Import and create nodes.

File

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

Code

function hook_node_import_static($type) {
  global $user;
  if ($type == 'story') {

    // Use the current user's information for importing stories.
    return array(
      'name' => $user->name,
      'uid' => $user->uid,
    );
  }
}