function ccl_account_information in Commerce Checkout Login 7.2
2 calls to ccl_account_information()
- commerce_checkout_login_form_commerce_checkout_form_checkout_alter in ./commerce_checkout_login.module
- Implements hook_form_alter().
- commerce_checkout_login_form_commerce_checkout_form_review_alter in ./commerce_checkout_login.module
- Implements hook_form_alter().
File
- ./commerce_checkout_login.module, line 301
- Adds a new checkout pane to allow users to login, create an account or
checkout anonymously depending on site configuration.
Code
function ccl_account_information($order) {
$content[] = array(
'#type' => 'item',
'#markup' => t('%checkout', array(
'%checkout' => t('Your account will be created after completing checkout.'),
)),
);
if (!module_exists('email_registration')) {
$content[] = array(
'#type' => 'item',
'#title' => t('Username'),
'#markup' => check_plain($order->data['commerce_checkout_login_register']['username']),
);
}
$content[] = array(
'#type' => 'item',
'#title' => t('E-mail address'),
'#markup' => check_plain($order->data['commerce_checkout_login_register']['mail']),
);
return $content;
}