| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: ahah_helper_demo.module,v 1.1 2008/08/29 18:58:21 wimleers Exp $ |
| 3 |
|
|
| 4 |
|
|
| 5 |
//---------------------------------------------------------------------------- |
//---------------------------------------------------------------------------- |
| 55 |
), |
), |
| 56 |
); |
); |
| 57 |
$form['billing_info']['update_usage'] = array( |
$form['billing_info']['update_usage'] = array( |
| 58 |
'#type' => 'submit', |
'#type' => 'submit', |
| 59 |
'#value' => t('Update usage'), |
'#value' => t('Update usage'), |
| 60 |
// Note that we can simply use the generic submit callback provided by the |
// Note that we can simply use the generic submit callback provided by the |
| 61 |
// ahah_helper module here! |
// ahah_helper module here! |
| 131 |
'#maxlength' => 255, |
'#maxlength' => 255, |
| 132 |
'#default_value' => $form_state['values']['billing_info']['country'], |
'#default_value' => $form_state['values']['billing_info']['country'], |
| 133 |
); |
); |
| 134 |
|
|
| 135 |
$form['save'] = array( |
$form['save'] = array( |
| 136 |
'#type' => 'submit', |
'#type' => 'submit', |
| 137 |
'#value' => t('Save'), |
'#value' => t('Save'), |
| 138 |
); |
); |
| 139 |
|
|
| 140 |
|
|
| 141 |
return $form; |
return $form; |
| 142 |
} |
} |