You are here

function format_number_element_info in Format Number API 7

Implements hook_element_info().

File

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