hook_language_negotiation_info_alter

function hook_language_negotiation_info_alter

hook_language_negotiation_info_alter(array &$language_providers)

Perform alterations on language negoiation providers.

Parameters

$language_providers: Array of language negotiation provider definitions.

See also

hook_language_negotiation_info()

Related topics

File

modules/system/language.api.php, line 167
Hooks provided by the base system for language support.

Code

function hook_language_negotiation_info_alter(array &$language_providers) {
  if (isset($language_providers['custom_language_provider'])) {
    $language_providers['custom_language_provider']['config'] = 'admin/config/regional/language/configure/custom-language-provider';
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!system!language.api.php/function/hook_language_negotiation_info_alter/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部