function wsclient_rest_wsclient_rest_formatter_info in Web service client 7
Implements hook_wsclient_rest_formatter_info().
File
- wsclient_rest/
wsclient_rest.module, line 92 - Web service client endpoint for invoking a RESTful service.
Code
function wsclient_rest_wsclient_rest_formatter_info() {
return array(
'WsclientRestFormFormatter' => array(
'label' => t('Basic url-encoded form formatter'),
'format' => t('Url-encoded form'),
'settings' => array(),
),
'WsclientRestJSONFormatter' => array(
'label' => t('Basic JSON formatter'),
'format' => t('JSON'),
'settings' => array(),
),
'WsclientRestPHPFormatter' => array(
'label' => t('Basic PHP formatter'),
'format' => t('PHP'),
'settings' => array(),
),
'WsclientRestXMLFormatter' => array(
'label' => t('Basic XML formatter'),
'format' => t('XML'),
'settings' => array(
'default_root' => 'result',
'adaptive_root' => FALSE,
),
),
// Is defined to provide backward compatibility.
'custom' => array(
'label' => t('Custom formatter defined in service settings'),
'format' => t('Custom formatters without hook implementation'),
'settings' => array(),
),
);
}