You are here

function path_node_import_fields_alter in Node import 6

Implementation of hook_node_import_fields_alter().

File

supported/path.inc, line 31
Support file for the path core module.

Code

function path_node_import_fields_alter(&$fields, $type) {
  foreach ($fields as $fieldname => $fieldinfo) {
    if ($fieldinfo['input_format'] == 'node') {
      $fields[$fieldname]['preprocess'] = array(
        'node_import_check_node_by_path',
      ) + $fieldinfo['preprocess'];
    }
  }
}