function ccl_account_information in Commerce Checkout Login 7.2
2 calls to ccl_account_information()
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.'),
)),
);
// Hide username field if email_registration is enabled.
// The username has been automatically generated, users should login using their email-address.
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;
}