Is it possible to define and register (via a hook) a custom input_format?
Whereby I could define a revised node_import_check for input_format date.

I did not find this within the Documentation.

Thanks

Jeff in Seattle

Comments

Robrecht Jacques’s picture

Category: feature » support

You can define your own input_formats, no hook is needed for that (I may add it one day, but seems not really needed). The only reason it is there is so hook_node_import_fields_alter() (and the builtin node_import_check_xxx ones in node_import_fields()) can attach preprocessors to it.

You can attach an own node_import_check_xxx in hook_node_import_fields_alter(). You have the possibility to change the whole field definition there.

Does this help?

jeff00seattle’s picture

Thanks, I will give it a try.

I thought that maybe I need to customize function node_import_fields() within node_import.inc to make this happen.

I am thinking about modifying 'input_format' 'date' so that it will SKIP the Options page.

Robrecht Jacques’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)
Issue tags: -node_import, -input_format, -hook_node_import_fields_alter

Automatically closed -- issue fixed for 2 weeks with no activity.