You are here

function node_import_cck_field_defaults in Node import 6

Returns an array of default values for the field information array for CCK fields.

14 calls to node_import_cck_field_defaults()
asin_node_import_fields in supported/amazon/asin.inc
Implementation of hook_node_import_fields().
content_taxonomy_node_import_fields in supported/content_taxonomy/content_taxonomy.inc
Implementation of hook_node_import_fields()
date_node_import_fields in supported/date/date.inc
Implementation of hook_node_import_fields().
email_node_import_fields in supported/email/email.inc
Implementation of hook_node_import_fields().
emaudio_node_import_fields in supported/emfield/emaudio.inc
Implementation of hook_node_import_fields().

... See full list

File

supported/cck/content.inc, line 62
Support file for contrib CCK module.

Code

function node_import_cck_field_defaults($fieldinfo) {
  return array(
    'group' => count($fieldinfo['columns']) > 1 ? $fieldinfo['widget']['label'] : '',
    'tips' => array(
      t('Imports into %name CCK field (%type type).', array(
        '%name' => $fieldinfo['field_name'],
        '%type' => $fieldinfo['type'],
      )),
    ),
    'has_multiple' => $fieldinfo['multiple'],
    'module' => $fieldinfo['module'],
    'allowed_values' => content_allowed_values($fieldinfo),
    'cck:fieldname' => $fieldinfo['field_name'],
    'cck:fieldinfo' => $fieldinfo,
  );
}