| 1 |
<?php |
<?php |
| 2 |
// $Id: ec_receipt.module,v 1.18.2.37 2009/07/04 19:48:10 recidive Exp $ |
// $Id: ec_receipt.module,v 1.18.2.38 2009/10/18 14:18:21 davea Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 1015 |
* Implementation of hook_elements(). |
* Implementation of hook_elements(). |
| 1016 |
*/ |
*/ |
| 1017 |
function ec_receipt_elements() { |
function ec_receipt_elements() { |
| 1018 |
$type['credit_card'] = array('#input' => TRUE, '#process' => array('expand_credit_card'), '#cvnshow' => FALSE, '#cvnrequired' => FALSE, '#element_validate' => array('valid_credit_card')); |
$type['credit_card'] = array( |
| 1019 |
$type['credit_card_expiry'] = array('#input' => TRUE, '#process' => array('expand_credit_card_expiry')); |
'#input' => TRUE, |
| 1020 |
|
'#process' => array('expand_credit_card'), |
| 1021 |
|
'#cvnshow' => FALSE, |
| 1022 |
|
'#cvnrequired' => FALSE, |
| 1023 |
|
'#element_validate' => array('valid_credit_card') |
| 1024 |
|
); |
| 1025 |
|
$type['credit_card_expiry'] = array( |
| 1026 |
|
'#input' => TRUE, |
| 1027 |
|
'#process' => array('expand_credit_card_expiry')); |
| 1028 |
return $type; |
return $type; |
| 1029 |
} |
} |
| 1030 |
|
|