function services_client_services_client_event_handler in Services Client 7.2
List availalable event handler plugins.
Return value
array Plugins definition.
File
- ./
services_client.plugins.inc, line 211 - Ctools plugin related functions
Code
function services_client_services_client_event_handler() {
$path = drupal_get_path('module', 'services_client') . '/include';
$info = array();
$info['EntitySaveHandler'] = array(
'name' => t('Entity save'),
'description' => 'General entity save handler',
'handler' => array(
'parent' => 'EventHandler',
'class' => 'EntitySaveHandler',
'file' => 'event.inc',
'path' => $path,
),
'type' => 'save',
);
$info['NodeSaveHandler'] = array(
'name' => t('Node save'),
'description' => 'Node entity save handler',
'handler' => array(
'parent' => 'EntitySaveHandler',
'class' => 'NodeSaveHandler',
'file' => 'event.inc',
'path' => $path,
),
'type' => 'save',
);
$info['UserSaveHandler'] = array(
'name' => t('User save'),
'description' => 'User entity save handler',
'handler' => array(
'parent' => 'EntitySaveHandler',
'class' => 'UserSaveHandler',
'file' => 'event.inc',
'path' => $path,
),
'type' => 'save',
);
$info['EntityDeleteHandler'] = array(
'name' => t('Entity delete'),
'description' => 'General entity delete handler',
'handler' => array(
'parent' => 'EventHandler',
'class' => 'EntityDeleteHandler',
'file' => 'event.inc',
'path' => $path,
),
'type' => 'delete',
);
return $info;
}