function format_number_user in Format Number API 6
Implementation of hook_user().
Allows users to individually set their number format.
File
- ./
format_number.module, line 63 - This module provides a method to configure number formats (site default and user defined) with configurable decimal point and thousand separators. It also exposes several functions that can be used by other contributed or custom modules to display…
Code
function format_number_user($type, &$edit, &$user, $category = NULL) {
if ($type == 'form' && $category == 'account' && variable_get('format_number_user_configurable', 0)) {
module_load_include('inc', 'format_number', 'format_number.settings');
return format_number_settings_user($edit);
}
elseif ($type == 'validate' && $category == 'account' && variable_get('format_number_user_configurable', 0)) {
module_load_include('inc', 'format_number', 'format_number.settings');
format_number_settings_user_validate($edit);
return;
}
}