function services_entity_get_resource_info in Services Entity API 7.2
Returns info about all defined resources.
Parameters
string $resource: By default null, else the info for the given resource will be returned.
1 call to services_entity_get_resource_info()
- services_entity_settings_form in ./
services_entity.module - Admin settings form for picking the class for entity resources.
File
- ./
services_entity.module, line 52
Code
function services_entity_get_resource_info($resource = NULL) {
$info =& drupal_static(__FUNCTION__);
if (!isset($info)) {
$info = module_invoke_all('services_entity_resource_info');
drupal_alter('services_entity_resource_info', $info);
}
if (!empty($resource)) {
return $info[$resource];
}
return $info;
}