You are here

function locale_inc_callback in Drupal 6

Wrapper function to be able to set callbacks in locale.inc

2 calls to locale_inc_callback()
locale_update_6007 in modules/locale/locale.install
Fix Drupal.formatPlural().
locale_update_js_files in modules/locale/locale.module
Update JavaScript translation file, if required, and add it to the page.
1 string reference to 'locale_inc_callback'
locale_menu in modules/locale/locale.module
Implementation of hook_menu().

File

modules/locale/locale.module, line 175
Add language handling functionality and enables the translation of the user interface to languages other than English.

Code

function locale_inc_callback() {
  $args = func_get_args();
  $function = array_shift($args);
  include_once './includes/locale.inc';
  return call_user_func_array($function, $args);
}