function uc_country_settings_overview in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_store/uc_store.admin.inc \uc_country_settings_overview()
Display the country settings overview.
1 string reference to 'uc_country_settings_overview'
- uc_store_menu in uc_store/
uc_store.module - Implementation of hook_menu().
File
- uc_store/
uc_store.module, line 985 - Contains global Ubercart functions and store administration functionality.
Code
function uc_country_settings_overview() {
$result = db_query("SELECT * FROM {uc_countries} ORDER BY country_name ASC");
while ($country = db_fetch_object($result)) {
$items[] = t('!country version !version is !status.', array(
'!country' => $country->country_name,
'!version' => abs($country->version),
'!status' => $country->version > 0 ? t('enabled') : t('disabled'),
));
}
$sections[] = array(
'edit' => 'admin/store/settings/countries/edit',
'title' => t('Imported countries'),
'items' => $items,
);
$sections[] = array(
'edit' => 'admin/store/settings/countries/edit/formats',
'title' => t('Country specific formats'),
'items' => array(
t('Tweak the address formatting for a specific country.'),
),
);
$output = theme('uc_settings_overview', $sections);
return $output;
}