function format_number_settings_site in Format Number API 6
Module settings form.
1 string reference to 'format_number_settings_site'
- format_number_menu in ./
format_number.module - Implementation of hook_menu().
File
- ./
format_number.settings.inc, line 11 - Implement module settings and user settings forms.
Code
function format_number_settings_site() {
$form = array();
$form['format_number_decimal_point'] = array(
'#type' => 'radios',
'#title' => t('Decimal point'),
'#options' => format_number_get_decimal_point_options(),
'#default_value' => variable_get('format_number_decimal_point', '.'),
'#description' => t('Select the character that will be used as decimal point.'),
);
$form['format_number_thousands_sep'] = array(
'#type' => 'radios',
'#title' => t('Thousands separator'),
'#options' => format_number_get_thousands_separator_options(),
'#default_value' => variable_get('format_number_thousands_sep', ','),
'#description' => t('Select the character that will be used as thousands separator.'),
);
$form['format_number_user_configurable'] = array(
'#type' => 'radios',
'#title' => t('User-configurable number format'),
'#default_value' => variable_get('format_number_user_configurable', 0),
'#options' => array(
t('Disabled'),
t('Enabled'),
),
'#description' => t('When enabled, users can set their own number formatting options.'),
);
$form['#validate'] = array(
'format_number_settings_site_validate',
);
return system_settings_form($form);
}