You are here

public function EventHandler::skipAutosync in Services Client 7.2

Return TRUE if this entity shouldn't be send automatically to all connections.

Return value

bool TRUE if shoudln't be auto synced.

File

include/event.inc, line 740

Class

EventHandler
Event handler plugin.

Code

public function skipAutosync() {
  if (!empty($this
    ->getEntity()->_services_client_exclude)) {
    return TRUE;
  }
  foreach (module_implements('services_client_skip_autosync') as $module) {
    $function = $module . '_services_client_skip_autosync';
    $result = call_user_func_array($function, array(
      $this,
      $this
        ->getEntity(),
      $this->event->entity_type,
    ));
    if ($result === TRUE) {
      return TRUE;
    }
  }
  return FALSE;
}