locale_library_info_alter

function locale_library_info_alter

locale_library_info_alter(array &$libraries, $module)

Implements hook_library_info_alter().

Provides the language support for the jQuery UI Date Picker.

File

core/modules/locale/locale.module, line 588
Enables the translation of the user interface to languages other than English.

Code

function locale_library_info_alter(array &$libraries, $module) {
  if ($module === 'core' && isset($libraries['jquery.ui.datepicker'])) {
    $libraries['jquery.ui.datepicker']['dependencies'][] = 'locale/drupal.locale.datepicker';
    $libraries