function content_node_import_fields in Node import 5
Implementation of hook_node_import_fields().
File
- supported/
cck/ content.inc, line 37
Code
function content_node_import_fields($type) {
$types = (array) content_types();
$fields = array();
if (isset($types[$type])) {
$content_type = $types[$type];
foreach ($content_type['fields'] as $field) {
// Create a potential input field for each field column by creating a dummy name for each column.
$db_info = content_database_info($field);
foreach ($db_info['columns'] as $column => $info) {
$fields[$field['field_name'] . '_' . $column] = $field['widget']['label'] . ' ' . $column . ' (' . $field['field_name'] . ')';
}
}
}
return $fields;
}