You are here

function hook_node_import_values_alter in Node import 6

Change the list of values to use to create the content type.

Parameters

$values: Array of values as will be passed to the create function. This does not only contain the values of hook_node_import_values() but the already mapped values as well.

$type: String. The content type as returned as a key by hook_node_import_types().

$options: Array of filled in options.

$preview: Boolean.

Return value

Just like with any Drupal _alter() hook, you need to change the array passed to this function.

Related topics

15 functions implement hook_node_import_values_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

book_node_import_values_alter in supported/book.inc
Implementation of hook_node_import_values_alter().
content_node_import_values_alter in supported/cck/content.inc
Implementation of hook_node_import_values_alter().
content_taxonomy_node_import_values_alter in supported/content_taxonomy/content_taxonomy.inc
Implementation of hook_node_import_values_alter()
date_node_import_values_alter in supported/date/date.inc
Implementation of hook_node_import_values_alter().
filefield_node_import_values_alter in supported/filefield/filefield.inc
Implementation of hook_node_import_values_alter().

... See full list

File

./node_import.api.php, line 501
Explanation of the Node import hooks.

Code

function hook_node_import_values_alter(&$values, $type, $defaults, $options, $fields, $preview) {
}