You are here

function _acquia_agent_an_trial_pass_old_form in Acquia Connector 6

Same name and namespace in other branches
  1. 7 acquia_agent/acquia_agent.pages.inc \_acquia_agent_an_trial_pass_old_form()

Existing user password page

File

acquia_agent/acquia_agent.pages.inc, line 394
Acquia Agent configuration page.

Code

function _acquia_agent_an_trial_pass_old_form(&$form_state, $banner = NULL) {
  $values = $form_state['storage']['values'];
  $form = array(
    '#prefix' => acquia_agent_an_info_header(),
    'form_header' => array(
      '#value' => acquia_agent_existing_account_msg(),
    ),
    'email' => array(
      '#type' => 'item',
      '#title' => t('E-mail address'),
      '#value' => $values['email'],
      '#required' => TRUE,
    ),
    'pass' => array(
      '#type' => 'password',
      '#title' => t('Acquia.com password'),
      '#description' => t('Please enter your Acquia.com password here'),
      '#size' => 32,
      '#required' => TRUE,
    ),
    'continue' => array(
      '#type' => 'submit',
      '#value' => 'Next >',
    ),
    'forgot_pass' => array(
      '#value' => '<br/>' . l(t('I forgot my password'), 'http://acquia.com/user/password', array(
        'attributes' => array(
          'target' => '_blank',
        ),
      )),
    ),
    // Special value elements.
    'this_step' => array(
      '#type' => 'value',
      '#value' => 'pass_old',
    ),
    'step_next' => array(
      '#type' => 'value',
      '#value' => 'details_old',
    ),
    '#validate' => array(
      '_acquia_agent_an_trial_pass_old_form_validate',
    ),
  );
  return $form;
}