Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 2 additions & 28 deletions wf_job/wf_job.services.inc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function wf_job_services_resources() {
'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'),
'callback' => 'wf_job_services_update',
'access callback' => 'wf_job_services_access',
'access arguments' => array('update'),
'access arguments' => array('edit'),
'access arguments append' => TRUE,
'args' => array(
array(
Expand Down Expand Up @@ -129,7 +129,7 @@ function wf_job_services_resources() {
'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'),
'help' => t('This method returns the job\'s current environment.'),
'access callback' => 'wf_job_services_access',
'access arguments' => array('environment'),
'access arguments' => array('view'),
'access arguments append' => TRUE,
'callback' => 'wf_job_services_environment',
'args' => array(
Expand All @@ -151,32 +151,6 @@ function wf_job_services_resources() {
),
),
),
'targeted_actions' => array(
'deployment' => array(
'file' => array('type' => 'inc', 'module' => 'wf_job', 'name' => 'wf_job.services'),
'help' => t('Record the outcome of a deployment.'),
'access callback' => 'wf_job_services_access',
'access arguments' => array('deployment'),
'access arguments append' => TRUE,
'callback' => 'wf_job_services_deployment',
'args' => array(
array(
'name' => 'jid',
'type' => 'int',
'description' => t('The id of the job for which to get an environment.'),
'source' => array('path' => '0'),
'optional' => FALSE,
),
array(
'name' => 'succeeded',
'type' => 'struct',
'description' => t("An object with properties 'succeeded' and a 'message'�."),
'source' => 'data',
'optional' => FALSE,
),
),
)
),
),
);
return $resources;
Expand Down