function payment_form_process_amount in Payment 7
Implements form process callback for a payment_amount element.
1 string reference to 'payment_form_process_amount'
- payment_element_info in ./
payment.module - Implements hook_element_info().
File
- ./
payment.ui.inc, line 662 - The Payment user interface.
Code
function payment_form_process_amount(array $element) {
$element['#type'] = 'textfield';
$element['#field_prefix'] = $element['#currency_code'];
$description = NULL;
if ($element['#minimum_amount'] !== FALSE && $element['#minimum_amount'] > 0) {
$description = t('The minimum amount is !amount.', array(
'!amount' => payment_amount_human_readable($element['#minimum_amount'], $element['#currency_code']),
));
}
$element['#description'] = $description;
$element['#size'] = 16;
$element['#maxlength'] = 16;
$element += element_info('textfield');
return $element;
}