function _services_resource_controller_as_service in Services 7
Same name and namespace in other branches
- 6.2 services.resource-translation.inc \_services_resource_controller_as_service()
1 call to _services_resource_controller_as_service()
- _services_resource_as_services in ./
services.resource-translation.inc - @author Services Dev Team @file Provides a CRUD functions for services.
File
- ./
services.resource-translation.inc, line 45 - @author Services Dev Team
Code
function _services_resource_controller_as_service($resource, $name, $controller, $file) {
$method = array_merge($controller, array(
'#method' => $resource . '_resource.' . $name,
));
if (!empty($file) && !empty($method['#file'])) {
$method['#file'] = $file;
}
return $method;
}