| 1 |
<?php |
<?php |
| 2 |
// $Id: ec_address.admin.inc,v 1.4.2.4 2009/04/16 07:38:07 gordon Exp $ |
// $Id: ec_address.admin.inc,v 1.4.2.5 2009/07/02 10:25:39 recidive Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 171 |
} |
} |
| 172 |
|
|
| 173 |
module_load_include('inc', 'ec_store', 'ec_store.localization'); |
module_load_include('inc', 'ec_store', 'ec_store.localization'); |
| 174 |
|
dpm($form_state['values']); |
| 175 |
if (($states = _ec_store_location_states($form_state['values']['country'])) && empty($states[$form_state['values']['state']])) { |
if (($states = _ec_store_location_states($form_state['values']['country'])) && empty($states[$form_state['values']['state']])) { |
| 176 |
form_set_error('state', t('Invalid state. Try to use the state code.')); |
form_set_error('state', t('Invalid state. Try to use the state code.')); |
| 177 |
} |
} |