function services_client_get_plugin in Services Client 7
Create new plugin instance
Parameters
$name:
$connection:
$config:
$client:
Return value
1 call to services_client_get_plugin()
- services_client_plugin_config in plugins/
export_ui/ services_client_ui.class.php - Plugin configuration form
File
- ./
services_client.module, line 164 - Services client module allows to push different types of objects on different types of events such as node_save, user_save to remote masters.
Code
function services_client_get_plugin($type, $name, $item, $config) {
$class = ctools_plugin_load_class('services_client', $type, $name, 'handler');
if ($class) {
return new $class($item, $config);
}
else {
throw new ServicesClientException(t('Missing class @name', array(
'@name' => $name,
)));
}
}