function node_import_fields in Node import 5
Same name and namespace in other branches
- 6 node_import.inc \node_import_fields()
Get a list of supported node fields for a given type.
Parameters
$type: String. Node type (key in the array returned by node_import_types()).
Return value
Array ($field => $name) with all the supported fields for this node type.
See also
3 calls to node_import_fields()
- node_import_automap in ./
node_import.api.inc - Try to find a likely mapping for given headers.
- product_node_import_fields in supported/
ecommerce/ product.inc - Implementation of hook_node_import_fields().
- _node_import_mapping in ./
node_import.module
File
- ./
node_import.api.inc, line 77
Code
function node_import_fields($type) {
static $fields = array();
if (!isset($fields[$type])) {
$fields[$type] = (array) module_invoke_all('node_import_fields', $type);
asort($fields[$type]);
}
return $fields[$type];
}