t('Aland'), 'B' => t('Bland'), ); } /** * Allows modules to add arbitrary AJAX commands to the array returned from the * standard address field widget refresh. * * @param &$commands * The array of AJAX commands used to refresh the address field widget. * @param $form * The rebuilt form array. * @param $form_state * The form state array from the form. * * @see addressfield_standard_widget_refresh() */ function hook_addressfield_standard_widget_refresh_alter(&$commands, $form, $form_state) { // Display an alert message. $commands[] = ajax_command_alert(t('The address field widget has been updated.')); }