You are here

function format_number_variable_info in Format Number API 7

Implements hook_variable_info().

File

./format_number.variable.inc, line 24
Hook implementations for the variable module.

Code

function format_number_variable_info($options) {
  $variables['format_number_thousands_sep'] = array(
    'type' => 'string',
    'title' => t('Thousands separator', array(), $options),
    'default' => ',',
    'options' => format_number_get_thousands_separator_options(),
    'description' => t('Select the character that will be used as decimal point.', array(), $options),
    'required' => TRUE,
    'localize' => TRUE,
    'group' => 'format_number',
  );
  $variables['format_number_decimal_point'] = array(
    'type' => 'string',
    'title' => t('Decimal point', array(), $options),
    'default' => '.',
    'options' => format_number_get_decimal_point_options(),
    'description' => t('Select the character that will be used as thousands separator.', array(), $options),
    'required' => TRUE,
    'localize' => TRUE,
    'group' => 'format_number',
  );
  return $variables;
}