You are here

function hook_services_client_event_handler in Services Client 7.2

ctools hook for Event Hanlder plugin discover.

Return value

array Ctools plugin definition.

See also

services_client_services_client_event_handler

1 function implements hook_services_client_event_handler()

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_event_handler in ./services_client.plugins.inc
List availalable event handler plugins.

File

./services_client.api.php, line 83
Services client allows you to push different objects from local drupal installation to remote servers via REST api.

Code

function hook_services_client_event_handler() {
  $info = array();
  $info['MyEntityTypeEventHandler'] = array(
    'name' => t('My entity save handler'),
    'description' => 'Specific for custom entity',
    'handler' => array(
      'parent' => 'EntitySaveHandler',
      'class' => 'MyEntityTypeEventHandler',
      'file' => 'MyEntityTypeEventHandler.inc',
      'path' => drupal_get_path('module', 'mymodule') . '/plugins',
    ),
    // It's important to define whether this is save/delete handler.
    'type' => 'save',
  );
  return $info;
}