function hook_node_import_fields in Node import 5
Same name and namespace in other branches
- 6 node_import.api.php \hook_node_import_fields()
Provides a list of fields which each module understands. When importing the array keys will be used to name the node object's children.
Parameters
$type: A string containing the node type currently being processed.
Return value
An associative array of node object children names => human readable descriptions.
19 functions implement hook_node_import_fields()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- book_node_import_fields in supported/
book.inc - Implementation of hook_node_import_fields().
- comment_node_import_fields in supported/
comment.inc - Implementation of hook_node_import_fields().
- content_node_import_fields in supported/
cck/ content.inc - Implementation of hook_node_import_fields().
- event_node_import_fields in supported/
event.inc - Implementation of hook_node_import_fields().
- flexinode_node_import_fields in supported/
flexinode.inc - Implementation of hook_node_import_fields().
1 invocation of hook_node_import_fields()
- node_import_fields in ./
node_import.api.inc - Get a list of supported node fields for a given type.
File
- docs/
node_import_hook_docs.php, line 33 - Documentation for hooks provided by the node_import module.
Code
function hook_node_import_fields($type) {
if ($type == 'story') {
// The story node type only implements the node's body and title.
return array(
'body' => t('Body'),
'title' => t('Title'),
);
}
}