function commerce_registration_information_settings_form in Commerce Registration 7.3
Same name and namespace in other branches
- 7.2 includes/commerce_registration.checkout_pane.inc \commerce_registration_information_settings_form()
Commerce checkout pane settings form builder.
File
- includes/
commerce_registration.checkout_pane.inc, line 510 - Checkout pane callback functions.
Code
function commerce_registration_information_settings_form($checkout_pane) {
$form = array();
$form['commerce_registration_product_title'] = array(
'#type' => 'textfield',
'#title' => t('Product Registration Title'),
'#description' => t('The text to populate the fieldset label for a registrant\'s information.') . '<br>' . t('Available tokens are [title] for the product title, and [index] for a countable index value.'),
'#default_value' => variable_get('commerce_registration_product_title', ''),
);
$form['commerce_registration_registrant_help'] = array(
'#type' => 'textarea',
'#title' => t('Product Registration Fieldset Help Text'),
'#description' => t('The help text to display to the user entering registration information.'),
'#default_value' => variable_get('commerce_registration_registrant_help', ''),
);
$form['commerce_registration_hide_email_logged_in'] = array(
'#type' => 'checkbox',
'#title' => t('Hide the Email field for logged in users'),
'#default_value' => variable_get('commerce_registration_hide_email_logged_in', ''),
);
return $form;
}