You are here

function hook_node_import_defaults_alter in Node import 6

Change the FAPI elements to set the default values for each field.

Parameters

$form: The form array to change.

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

$defaults: Array of the currently filled in values for the defaults page.

$fields: Array of fields available for this type.

$map: Array of how the file columns are mapped to the fields.

Return value

Just like with any Drupal drupal_alter() hook, you need to change the array passed to this function directly and not return anything.

Related topics

File

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

Code

function hook_node_import_defaults_alter(&$form, $type, $defaults, $fields, $map) {
}