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()
List of data processors available for parsing web service data.
Processors have two components:
- data parsing format
- data output structure
Data parsing format refers to the type of data this processor can parse. For example json, xml, ical, etc...
The output structure refers to the Drupal object which can be fed by the parsed data. Your options are:
- fields
- form
- data
Fields imply that this processor can feed information into wsfields. Form is for wsbeans, and any other object which renders Form API data. Data is to simply return the raw parsed data. Meaning if you pass in a JSON array for example, you'll be returned a PHP array representation of that JSON data.
The return array is keyed on the class name of the processor (please use proper class casing. Our naming scheme is from the legacy class formats in Drupal)
Be sure to include your classes in the .info file if they aren't stored in your .module file
Return value
array Returns an array of processor info.
See also
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
- ./
wsdata.api.php, line 40
Code
function hook_wsconfig_processor_info() {
return array(
'WsDataSimpleXmlProcessor' => array(
'fields' => array(
'list_boolean' => t('WSData Simple XML Processor'),
'text_with_summary' => t('WSData Simple XML Processor'),
'text' => t('WSData Simple XML Processor'),
),
'data' => t('WSData Simple XML Processor'),
'form' => t('WSData Simple XML Form API Processor'),
),
'WsDataSimpleJsonProcessor' => array(
'fields' => array(
'list_boolean' => t('WSData Simple JSON Processor'),
'text_with_summary' => t('WSData Simple JSON Processor'),
'text' => t('WSData Simple JSON Processor'),
),
'data' => t('WSData Simple JSON Processor'),
),
);
}