function hook_services_client_mapping in Services Client 7.2
ctools hook for Mapping plugin discover.
Return value
array Ctools plugin definition.
See also
services_client_services_client_mapping
1 function implements hook_services_client_mapping()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- services_client_services_client_mapping in ./
services_client.plugins.inc - List available mapping plugins.
File
- ./
services_client.api.php, line 31 - Services client allows you to push different objects from local drupal installation to remote servers via REST api.
Code
function hook_services_client_mapping() {
$info = array();
$info['MyPlugin'] = array(
'name' => t('My plugin'),
'description' => 'My reader/writer plugin',
'handler' => array(
'parent' => 'ServicesClientMapperPlugin',
'class' => 'MyPlugin',
'file' => 'MyPlugin.inc',
'path' => drupal_get_path('module', 'mymodule') . '/plugins',
),
// This is important to define weather this is reader or formatter plugin
'type' => 'reader',
);
return $info;
}