function location_util_form in Location 7.3
Same name and namespace in other branches
- 5.3 location.d5.inc \location_util_form()
- 6.3 location.admin.inc \location_util_form()
- 7.5 location.admin.inc \location_util_form()
- 7.4 location.admin.inc \location_util_form()
Location Utilities form.
1 string reference to 'location_util_form'
- location_menu in ./
location.module - Implements hook_menu().
File
- ./
location.admin.inc, line 393 - Admin forms for Location.
Code
function location_util_form($form, &$form_state) {
$form['province_clear'] = array(
'#type' => 'fieldset',
'#title' => t('Clear province cache'),
'#description' => t('If you have modified location.xx.inc files, you will need to clear the province cache to get Location to recognize the modifications.'),
);
$form['supported_countries_clear'] = array(
'#type' => 'fieldset',
'#title' => t('Clear supported country list'),
'#description' => t('If you have added support for a new country, you will need to clear the supported country list to get Location to recognize the modifications.'),
);
$form['actions'] = array(
'#type' => 'actions',
);
$form['actions']['province_clear_submit'] = array(
'#type' => 'submit',
'#value' => t('Clear province cache'),
'#submit' => array(
'location_util_form_clear_province_cache_submit',
),
);
$form['actions']['supported_countries_clear_submit'] = array(
'#type' => 'submit',
'#value' => t('Clear supported country list'),
'#submit' => array(
'location_util_form_clear_supported_countries_submit',
),
);
return $form;
}