function hook_node_import_format_options in Node import 6
This hook allows users to change some of the options the user is presented with on the wizard form.
Parameters
$op: String.
- \b 'record separators'
- \b 'field separators'
- \b 'text delimiters'
- \b 'escape characters' Extend the options presented on the "Set file options" page.
- \b 'file formats' Extend the available file formats.
- \b 'date input formats' Builtin date formats.
Return value
For all $ops except 'file formats' you need to return an array ($key => $title).
For the 'file formats' $op you need to return: ($key => $info) where $key is a unique key to identify the predefined file format and $info is an array with following keys:
- \b 'title' : Human readable form. Required.
- \b 'record separator' : The $char to use as record separator.
- \b 'field separator' : The $char to use as field separator.
- \b 'text delimiter' : The $char to use as text delimiter.
- \b 'escape character' : The $char to use as escape character.
Related topics
1 function implements hook_node_import_format_options()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- node_import_node_import_format_options in supported/
node_import.inc - Implementation of hook_node_import_format_options().
1 invocation of hook_node_import_format_options()
- node_import_format_options in ./
node_import.inc - Get a list of options for different stuff presented to the user in the wizard form such as 'record separators', ...
File
- ./
node_import.api.php, line 590 - Explanation of the Node import hooks.
Code
function hook_node_import_format_options($op) {
}