function _services_entity_resource_callback in Services Entity API 7.2
Services resource callback.
Invokes the specified method of the appropriate controller.
Parameters
string $method: The method to invoke.
string $entity_type: The entity type.
...: Additional arguments to pass to the method.
Return value
mixed The response payload for the service, ready for formatting.
1 string reference to '_services_entity_resource_callback'
- ServicesResourceControllerAbstract::getInfoElement in plugins/
services_entity_abstract.inc - Helper function to return basic information about a resource operation.
File
- ./
services_entity.resources.inc, line 47
Code
function _services_entity_resource_callback($method, $entity_type) {
$args = func_get_args();
$method = array_shift($args);
$entity_type = reset($args);
$controller = _services_entity_get_controller($entity_type);
return call_user_func_array(array(
$controller,
$method,
), $args);
}