services.resource_update.inc in Services 7.3
File
includes/services.resource_update.inc
View source
<?php
function services_resource_api_update_3002(&$resources) {
static $operations = array(
'create',
'retrieve',
'update',
'delete',
'index',
);
foreach ($resources as $name => &$resource) {
foreach ($operations as $key) {
if (!empty($resource[$key])) {
$resource['operations'][$key] = $resource[$key];
unset($resource[$key]);
}
}
}
}
Functions
Name |
Description |
services_resource_api_update_3002 |
Updates resource definitions to the 3002 version with normalized definitions
for the CRUD operations. The CRUD operations will now be namespaced just
like relationships, targeted_actions and actions. |