From 15d059eff803153440300071a25f0ba22d4722ef Mon Sep 17 00:00:00 2001 From: Jennifer Hodgdon Date: Fri, 16 Aug 2013 15:48:32 -0700 Subject: Issue #1977054 by ebargtuo, dooug: Make docs for language API callbacks match the code --- includes/language.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'includes') diff --git a/includes/language.inc b/includes/language.inc index ea63948d9..8319596d4 100644 --- a/includes/language.inc +++ b/includes/language.inc @@ -78,7 +78,7 @@ define('LANGUAGE_NEGOTIATION_DEFAULT', 'language-default'); * function mymodule_language_negotiation_info_alter(&$negotiation_info) { * // Replace the core function with our own function. * module_load_include('language', 'inc', 'language.negotiation'); - * $negotiation_info[LANGUAGE_NEGOTIATION_URL]['callbacks']['negotiation'] = 'mymodule_from_url'; + * $negotiation_info[LANGUAGE_NEGOTIATION_URL]['callbacks']['language'] = 'mymodule_from_url'; * $negotiation_info[LANGUAGE_NEGOTIATION_URL]['file'] = drupal_get_path('module', 'mymodule') . '/mymodule.module'; * } * @@ -94,7 +94,6 @@ define('LANGUAGE_NEGOTIATION_DEFAULT', 'language-default'); * } * return $langcode; * } - * ?> * @endcode * * For more information, see -- cgit v1.2.3