function services_client_services_client_mapping in Services Client 7.2
Same name and namespace in other branches
- 7 services_client.module \services_client_services_client_mapping()
List available mapping plugins.
Return value
array Plugins definition.
File
- ./
services_client.plugins.inc, line 91 - Ctools plugin related functions
Code
function services_client_services_client_mapping() {
$path = drupal_get_path('module', 'services_client') . '/include';
$info = array();
$info['ServicesClientPropertyReader'] = array(
'name' => t('Property'),
'description' => 'Read property from entity',
'handler' => array(
'parent' => 'ServicesClientMapperPlugin',
'class' => 'ServicesClientPropertyReader',
'file' => 'mapping.inc',
'path' => $path,
),
'type' => 'reader',
);
$info['ServicesClientFieldReader'] = array(
'name' => t('Field'),
'description' => 'Reads field value(s) from entity',
'handler' => array(
'parent' => 'ServicesClientMapperPlugin',
'class' => 'ServicesClientFieldReader',
'file' => 'mapping.inc',
'path' => $path,
),
'type' => 'reader',
);
$info['ServicesClientPropertyFormatter'] = array(
'name' => t('Property'),
'description' => 'Create property on entity',
'handler' => array(
'parent' => 'ServicesClientMapperPlugin',
'class' => 'ServicesClientPropertyFormatter',
'file' => 'mapping.inc',
'path' => $path,
),
'type' => 'formatter',
);
$info['ServicesClientFieldFormatter'] = array(
'name' => t('Field'),
'description' => 'Create field on entity',
'handler' => array(
'parent' => 'ServicesClientMapperPlugin',
'class' => 'ServicesClientFieldFormatter',
'file' => 'mapping.inc',
'path' => $path,
),
'type' => 'formatter',
);
$info['ServicesClientFieldD6Formatter'] = array(
'name' => t('Field (D6, D5)'),
'description' => 'Create field on entity',
'handler' => array(
'parent' => 'ServicesClientFieldFormatter',
'class' => 'ServicesClientFieldD6Formatter',
'file' => 'mapping.inc',
'path' => $path,
),
'type' => 'formatter',
);
return $info;
}