You are here

function format_number_elements in Format Number API 6

Implementation of hook_elements().

File

./format_number.module, line 363
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_elements() {
  return array(
    'numericfield' => array(
      '#input' => TRUE,
      '#precision' => 12,
      '#decimals' => 0,
      '#process' => array(
        'format_number_numericfield_process',
      ),
    ),
  );
}