function basic_cart_checkout_form in Basic cart 7
Same name and namespace in other branches
- 7.2 basic_cart.cart.inc \basic_cart_checkout_form()
Checkout form.
1 string reference to 'basic_cart_checkout_form'
- basic_cart_checkout in ./
basic_cart.cart.inc - Checkout form implementation.
File
- ./
basic_cart.cart.inc, line 217 - Basic cart shopping cart implementation functions.
Code
function basic_cart_checkout_form() {
$form['basic_cart_checkout_name'] = array(
'#title' => t('Name'),
'#type' => 'textfield',
'#required' => TRUE,
'#description' => t('Please enter your name.'),
);
$form['basic_cart_checkout_email'] = array(
'#title' => t('Email'),
'#type' => 'textfield',
'#required' => TRUE,
'#description' => t('Please enter your email.'),
);
$form['basic_cart_checkout_phone'] = array(
'#title' => t('Phone'),
'#type' => 'textfield',
'#description' => t('Please enter your phone.'),
);
$form['basic_cart_checkout_address'] = array(
'#title' => t('Address'),
'#type' => 'textfield',
'#description' => t('Please enter your address.'),
);
$form['basic_cart_checkout_message'] = array(
'#title' => t('Message'),
'#type' => 'textarea',
'#description' => t('If you have something to tell us, please fill the message area.'),
);
$form['basic_cart_checkout_submit'] = array(
'#type' => 'submit',
'#value' => t('Submit order'),
);
return $form;
}