You are here

function locale_node_import_fields_alter in Node import 6

Implementation of hook_node_import_fields_alter().

File

supported/locale.inc, line 30
Support file for core locale module.

Code

function locale_node_import_fields_alter(&$fields, $type) {
  foreach ($fields as $fieldname => $fieldinfo) {
    if ($fieldinfo['input_format'] == 'language') {
      $fields[$fieldname]['preprocess'][] = 'node_import_check_language';
      $fields[$fieldname]['tips'][] = t('Language (by code (en/nl), name (English/Dutch) or native name (English/Nederlands).');
    }
  }
}