function node_import_format_options in Node import 6
Get a list of options for different stuff presented to the user in the wizard form such as 'record separators', ...
Parameters
$op: String. See hook_node_import_format_options().
$reset: Boolean. If TRUE, the internal cache is reset.
Return value
Array.
Related topics
5 calls to node_import_format_options()
- node_import_add_form in ./
node_import.admin.inc - Creates a new import task by letting the user fill in a wizard.
- node_import_autodetect in ./
node_import.inc - Return an autodetected file format and file options for given file.
- node_import_task_details in ./
node_import.admin.inc - node_import_view_form_submit_download in ./
node_import.admin.inc - _node_import_sanitize_file_options in ./
node_import.inc
File
- ./
node_import.inc, line 756 - Public API of the Node import module.
Code
function node_import_format_options($op, $reset = FALSE) {
static $options;
if (!isset($options) || $reset && !isset($op)) {
$options = array();
}
if (isset($op) && (!isset($options[$op]) || $reset)) {
$options[$op] = module_invoke_all('node_import_format_options', $op);
drupal_alter('node_import_format_options', $options[$op], $op);
}
return isset($op) ? $options[$op] : array();
}