function uc_store_display_settings_form in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_store/uc_store.admin.inc \uc_store_display_settings_form()
1 string reference to 'uc_store_display_settings_form'
- uc_store_menu in uc_store/
uc_store.module - Implementation of hook_menu().
File
- uc_store/
uc_store.module, line 1395 - Contains global Ubercart functions and store administration functionality.
Code
function uc_store_display_settings_form() {
$form['uc_store_admin_page_display'] = array(
'#type' => 'radios',
'#title' => t('Display type for the main store admininstration page'),
'#description' => t('Some options are better suited for different themes, so feel free to try them all out!'),
'#options' => array(
1 => t('Dashboard with collapsed submenu links'),
2 => t('Dashboard with expanded submenu links'),
3 => t('Dashboard with no submenu links'),
4 => t('Normal Drupal submenu listing'),
),
'#default_value' => variable_get('uc_store_admin_page_display', 1),
);
$desc = t('Select the address to be used on customer lists and summaries.');
if (module_exists('uc_notify')) {
$desc .= ' ' . t('Also applies to notification e-mails.');
}
$form['uc_customer_list_address'] = array(
'#type' => 'radios',
'#title' => t('Primary customer address'),
'#description' => $desc,
'#options' => array(
'billing' => t('Billing address'),
'shipping' => t('Shipping address'),
),
'#default_value' => variable_get('uc_customer_list_address', 'billing'),
);
$options = array(
t('Randomly select a message from the list below.'),
);
$form['uc_footer_message'] = array(
'#type' => 'radios',
'#title' => t('Footer message for store pages'),
'#options' => array_merge($options, _store_footer_options()),
'#default_value' => variable_get('uc_footer_message', 0),
);
return system_settings_form($form);
}