You are here

function node_deploy_operations_add_now_form in Deploy - Content Staging 6

Display node "deploy now" form.

Parameters

$form_state: FAPI form state

$nids: The nids of the nodes we're attempting to deploy.

Return value

FAPI array

See also

node_deploy_add_now_form_submit()

1 string reference to 'node_deploy_operations_add_now_form'
node_deploy_menu in modules/node_deploy/node_deploy.module
Implementation of hook_menu().

File

modules/node_deploy/node_deploy.pages.inc, line 132
Page handlers for node deployment pages.

Code

function node_deploy_operations_add_now_form($form_state, $nids) {
  if (!$nids) {
    drupal_set_message('No nodes selected for deployment.');
    drupal_goto('admin/content/node');
  }
  $form = deploy_get_server_form();
  $form['nids'] = array(
    '#type' => 'hidden',
    '#default_value' => $nids,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}