You are here

function deploy_plan_push_form in Deploy - Content Staging 6

Push a deployment plan live form.

Prompts the user to choose what server they wish to deploy to before proceeding with the good stuff.

Parameters

$form_state: FAPI form state

$pid: Unique identifier of the plan we're pushing.

$sid: Which server to use for the deployment.

Return value

FAPI form definition

See also

deploy_plan_push_form_submit()

1 string reference to 'deploy_plan_push_form'
deploy_menu in ./deploy.module
Implementation of hook_menu().

File

./deploy.module, line 342
Deployment API which enables modules to deploy items between servers.

Code

function deploy_plan_push_form($form_state, $pid, $sid = NULL) {
  $form = deploy_get_server_form();
  $form['pid'] = array(
    '#type' => 'hidden',
    '#value' => $pid,
  );
  return $form;
}