You are here

function services_client_sync_exclude in Services Client 7

Determine whether module should skip syncing users

1 call to services_client_sync_exclude()
services_client_data_process in ./services_client.module
This function takes inbound data objects and a type and determines if there are tasks for them. If there are, it checks conditions and then generates connections and organizes the data to pass to the calling functions

File

./services_client.module, line 1276
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_sync_exclude($object, $type) {
  $hook = 'services_client_data_exclude';
  foreach (module_implements($hook) as $module) {
    $func = $module . '_' . $hook;
    $result = $func($object, $type);

    // If module is requesting skip we don't
    if ($result === TRUE) {
      return TRUE;
    }
  }
}