You are here

function services_client_get_event in Services Client 7.2

Retrieve object handler for given name.

Parameters

string $name: Name of the event.

Return value

EventHandler

4 calls to services_client_get_event()
services_client_error_admin_list in services_client_error/services_client_error.admin.inc
List all services client errors
services_client_error_admin_repair in services_client_error/services_client_error.admin.inc
Resend data to connection that produced error
services_client_error_retry in services_client_error/services_client_error.module
Retry and execute error
services_client_queue_sync in ./services_client.module
Sync queued data to other sites. Drupal will use this function as callback in cron run.

File

./services_client.module, line 121

Code

function services_client_get_event($name) {
  ctools_include('export');

  // Load event by name.
  $item = ctools_export_crud_load('services_client_connection_event', $name);
  if (!empty($item)) {
    return $item
      ->getHandler();
  }
  return NULL;
}