You are here

function format_number_user_presave in Format Number API 7

Implements hook_user_presave().

File

./format_number.module, line 78
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_presave(&$edit, $account, $category) {
  if (isset($edit['decimal_point'])) {
    $edit['data']['decimal_point'] = $edit['decimal_point'];
  }
  if (isset($edit['thousands_sep'])) {
    $edit['data']['thousands_sep'] = $edit['thousands_sep'];
  }
}