You are here

function formatted_number_add_js in Formatted Number 6

Add javascript/styles for Formatted Number Widgets.

2 calls to formatted_number_add_js()
formatted_number_field_settings in ./formatted_number.module
Implementation of hook_field_settings().
theme_formatted_number in ./formatted_number.module
Display a CCK Number (widget).

File

./formatted_number.module, line 627
Defines CCK numeric types where thousands separator and decimal point are inherited from the Format Number API module.

Code

function formatted_number_add_js() {
  static $ready;
  if (!isset($ready)) {
    $ready = TRUE;
    format_number_add_js();
    drupal_add_css(drupal_get_path('module', 'formatted_number') . '/formatted_number.css');
    drupal_add_js(drupal_get_path('module', 'formatted_number') . '/formatted_number.js');
  }
}