diff --git a/core/includes/language.inc b/core/includes/language.inc index f96928e..0892cc4 100644 --- a/core/includes/language.inc +++ b/core/includes/language.inc @@ -77,8 +77,9 @@ const LANGUAGE_NEGOTIATION_DEFAULT = 'language-default'; * @code * function mymodule_language_negotiation_info_alter(&$negotiation_info) { * // Replace the core function with our own function. - * $negotiation_info[LOCALE_LANGUAGE_NEGOTIATION_URL]['callbacks']['negotiation'] = 'mymodule_from_url'; - * $negotiation_info[LOCALE_LANGUAGE_NEGOTIATION_URL]['file'] = drupal_get_path('module', 'mymodule') . '/mymodule.module'; + * module_load_include('language', 'inc', 'language.negotiation'); + * $negotiation_info[LANGUAGE_NEGOTIATION_URL]['callbacks']['negotiation'] = 'mymodule_from_url'; + * $negotiation_info[LANGUAGE_NEGOTIATION_URL]['file'] = drupal_get_path('module', 'mymodule') . '/mymodule.module'; * } * * function mymodule_from_url($languages) { @@ -158,8 +159,8 @@ function language_types_info() { * Returns only the configurable language types. * * A language type maybe configurable or fixed. A fixed language type is a type - * whose language negotiation methods are unchangeable (defined by the module - * that defines the language type). + * whose language negotiation methods are module-defined and not altered through + * the user interface. * * @param $stored * (optional) By default, retrieves values from the 'language_types' variable