You are here

function deploy_services_create in Deploy - Content Staging 7.2

Same name and namespace in other branches
  1. 7.3 modules/deploy_services/deploy_services.services.inc \deploy_services_create()

Services create operation callback.

Parameters

array $data: The configuration for the plan.

Return value

array Details of the new plan.

1 string reference to 'deploy_services_create'
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 140
Deploy Services module services functions.

Code

function deploy_services_create($data) {
  $plan = deploy_plan_save($data);
  return array(
    'pid' => $plan->pid,
    'name' => $plan->name,
    'uri' => services_resource_uri(array(
      'deploy',
      $plan->name,
    )),
  );
}