}
else {
$remainder = abs($value) - intval(abs($value));
- $value = number_format($value, 0, '', $this->options['separator']);
+ $value = number_format(floor($value), 0, '', $this->options['separator']);
if ($remainder) {
// The substr may not be locale safe.
$value .= $this->options['decimal'] . substr($remainder, 2);
* Perform any necessary changes to the form values prior to storage.
* There is no need for this function to actually store the data.
*/
- function options_submit($form, &$form_state) {
+ function options_submit(&$form, &$form_state) {
$section = $form_state['section'];
switch ($section) {
case 'display_title':