function services_client_get_data_type in Services Client 7
Get data type by passed to services client by event type
Parameters
string $event: String representing event type
Return value
string Entity type
2 calls to services_client_get_data_type()
- 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
- services_client_get_data_id in ./
services_client.module - Extract primary key identifier from passed data
File
- ./
services_client.module, line 550 - 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_get_data_type($event) {
static $types = array(
'node_save' => 'node',
'node_delete' => 'node',
'user_save' => 'user',
);
return isset($types[$event]) ? $types[$event] : NULL;
}