function hook_wsconfig_processor_info in Web Service Data 7
Same name in this branch
- 7 wsdata.api.php \hook_wsconfig_processor_info()
- 7 modules/wsconfig/wsconfig.api.php \hook_wsconfig_processor_info()
Define a list of processors your module implements
Processors are used to parse the data coming back from web service calls into the proper format for storing data in fields. They are responsible for creating the structure arrays for all supported entities/fields.
This hook allows modules to register classes which implement the WsData class and allows the user to select the appropriate processor through the UI.
Return value
array Returns a structure array defining your processor(s)
Since the processor classes may implement fields and/or entities, the hook requires implementations to register all the supported objects.
Ex: array('MyModuleWsDataJson' => array('text' => 'JSON Parser for My Module'));
6 functions implement hook_wsconfig_processor_info()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- wsbeans_wsconfig_processor_info in modules/
wsbeans/ wsbeans.module - Implements hook_wsconfig_processor_info().
- wsdata_solr_wsconfig_processor_info in modules/
wsdata_solr/ wsdata_solr.module - Implememnts hook_wsconfig_processor_info().
- wsdata_wsconfig_processor_info in ./
wsdata.module - Implememnts hook_wsconfig_processor_info().
- ws_addressfield_wsconfig_processor_info in modules/
ws_addressfield/ ws_addressfield.module - Implements hook_wsconfig_processor_info().
- ws_datefield_wsconfig_processor_info in modules/
ws_datefield/ ws_datefield.module - Implements hook_wsconfig_processor_info().
3 invocations of hook_wsconfig_processor_info()
- wsconfig_flush_caches in modules/
wsconfig/ wsconfig.module - Implements hook_flush_caches().
- wsconfig_modules_disabled in modules/
wsconfig/ wsconfig.module - Implements hook_modules_disabled().
- wsconfig_modules_enabled in modules/
wsconfig/ wsconfig.module - Implements hook_modules_enabled().
File
- modules/
wsconfig/ wsconfig.api.php, line 55 - Describe the file
Code
function hook_wsconfig_processor_info() {
return array(
'myprocessorclassname' => array(
'fields' => array(
'machinetype' => 'Display name for MyProcessor',
),
'entities' => array(
'machinetype' => 'Display name for MyProcessor',
),
),
);
}