You are here

function uc_addresses_settings_overview in Ubercart Addresses 5.2

Same name and namespace in other branches
  1. 5 uc_addresses.module \uc_addresses_settings_overview()
  2. 6.2 uc_addresses.admin.inc \uc_addresses_settings_overview()
  3. 6 uc_addresses.admin.inc \uc_addresses_settings_overview()

Display the addresses settings overview.

1 string reference to 'uc_addresses_settings_overview'
uc_addresses_menu in ./uc_addresses.module
Implementation of hook_menu().

File

./uc_addresses.module, line 582

Code

function uc_addresses_settings_overview() {
  $items = array(
    variable_get('uc_addresses_default_delivery_address', TRUE) ? t('Automatically filling in the delivery address with the user\'s default address.') : t('The customer must enter or choose a delivery address.'),
    variable_get('uc_addresses_default_billing_address', TRUE) ? t('Automatically filling in the billing address with the user\'s default address.') : t('The customer must enter or choose a billing address.'),
    variable_get('uc_addresses_require_address', TRUE) ? t('The customer must enter an address when registering') : t('The customer does not enter an address when registering.'),
  );
  $sections[] = array(
    'edit' => 'admin/store/settings/addresses/edit',
    'title' => t('Address settings '),
    'items' => $items,
  );
  $output = theme('uc_settings_overview', $sections);
  return $output;
}