function _acquia_agent_an_trial_details_old_form in Acquia Connector 6
Same name and namespace in other branches
- 7 acquia_agent/acquia_agent.pages.inc \_acquia_agent_an_trial_details_old_form()
Existing user form page
File
- acquia_agent/
acquia_agent.pages.inc, line 311 - Acquia Agent configuration page.
Code
function _acquia_agent_an_trial_details_old_form(&$form_state, $banner = NULL) {
$ud = $form_state['storage']['userdata'];
$form = array(
'#prefix' => '<p>' . t('Let\'s get started creating a new trial subscription for your account.') . '</p>',
'name' => array(
'#type' => 'item',
'#title' => t('My account username'),
'#value' => $ud['name'],
'#required' => TRUE,
),
'first_name' => array(
'#type' => 'item',
'#title' => t('First name'),
'#value' => $ud['profile_firstname'],
'#required' => TRUE,
),
'last_name' => array(
'#type' => 'item',
'#title' => t('Last name'),
'#value' => $ud['profile_lastname'],
'#required' => TRUE,
),
'subscription_name' => array(
'#type' => 'textfield',
'#title' => t('Subscription name'),
'#size' => 32,
'#maxlength' => 64,
'#required' => TRUE,
'#default_value' => variable_get('site_name', t('My new site')),
),
'site_url' => array(
'#type' => 'textfield',
'#title' => t('Your site\'s URL'),
'#size' => 32,
'#maxlength' => 128,
'#default_value' => url(NULL, array(
'absolute' => TRUE,
)),
),
'billing_country_acquia' => array(
'#type' => 'select',
'#title' => t('Country'),
'#options' => _acquia_agent_countries(),
'#required' => TRUE,
'#default_value' => $ud['profile_country'],
),
'billing_company' => array(
'#type' => 'textfield',
'#title' => t('Company'),
'#size' => 32,
'#maxlength' => 64,
'#default_value' => $ud['profile_organization'],
'#required' => TRUE,
),
'billing_phone' => array(
'#type' => 'textfield',
'#title' => t('Phone'),
'#size' => 32,
'#maxlength' => 64,
'#default_value' => $ud['profile_officephone'],
'#required' => TRUE,
),
'submit' => array(
'#type' => 'submit',
'#value' => t('Start my new 30-day free trial for this site'),
),
// Special value elements.
'this_step' => array(
'#type' => 'value',
'#value' => 'details_old',
),
'banner' => array(
'#value' => $banner,
),
'#theme' => 'acquia_agent_banner_form',
'#validate' => array(
'_acquia_agent_an_trial_details_form_validate',
),
);
return $form;
}