function deploy_services_update in Deploy - Content Staging 7.2
Same name and namespace in other branches
- 7.3 modules/deploy_services/deploy_services.services.inc \deploy_services_update()
Services update operation callback.
Parameters
string $name: The name of the plan to update.
array $data: The configuration for the plan.
Return value
array Details of the updated plan.
1 string reference to 'deploy_services_update'
- deploy_services_services_resources in modules/
deploy_services/ deploy_services.services.inc - Implements hook_services_resources().
File
- modules/
deploy_services/ deploy_services.services.inc, line 181 - Deploy Services module services functions.
Code
function deploy_services_update($name, $data) {
$data['name'] = $name;
$plan = deploy_plan_save($data);
return array(
'pid' => $plan->pid,
'name' => $plan->name,
'uri' => services_resource_uri(array(
'deploy',
$plan->name,
)),
);
}