summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJennifer Hodgdon <yahgrp@poplarware.com>2013-08-16 15:48:32 -0700
committerJennifer Hodgdon <yahgrp@poplarware.com>2013-08-16 15:48:32 -0700
commit15d059eff803153440300071a25f0ba22d4722ef (patch)
tree2b0cf0751f0ea2ac454e540bbf06c3120c4ef90a
parentb38421cbb38e14adc91de2963af209ffbca81b38 (diff)
downloadbrdo-15d059eff803153440300071a25f0ba22d4722ef.tar.gz
brdo-15d059eff803153440300071a25f0ba22d4722ef.tar.bz2
Issue #1977054 by ebargtuo, dooug: Make docs for language API callbacks match the code
-rw-r--r--includes/language.inc3
-rw-r--r--modules/system/language.api.php10
2 files changed, 6 insertions, 7 deletions
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
diff --git a/modules/system/language.api.php b/modules/system/language.api.php
index d868b6fef..f8e6a256d 100644
--- a/modules/system/language.api.php
+++ b/modules/system/language.api.php
@@ -118,11 +118,11 @@ function hook_language_types_info_alter(array &$language_types) {
* will be available for all the configurable language types.
* - callbacks: An associative array of functions that will be called to
* perform various tasks. Possible elements are:
- * - negotiation: (required) Name of the callback function that determines
- * the language value.
- * - language_switch: (optional) Name of the callback function that
- * determines links for a language switcher block associated with this
- * provider. See language_switcher_url() for an example.
+ * - language: (required) Name of the callback function that determines the
+ * language value.
+ * - switcher: (optional) Name of the callback function that determines
+ * links for a language switcher block associated with this provider. See
+ * language_switcher_url() for an example.
* - url_rewrite: (optional) Name of the callback function that provides URL
* rewriting, if needed by this provider.
* - file: The file where callback functions are defined (this file will be