You are here

function language_cookie_language_negotiation_info in Language Cookie 7.2

Same name and namespace in other branches
  1. 7 language_cookie.module \language_cookie_language_negotiation_info()

Implements hook_language_negotiation_info().

File

./language_cookie.module, line 33
Language Cookie module.

Code

function language_cookie_language_negotiation_info() {
  return array(
    LANGUAGE_COOKIE_NEGOTIATION => array(
      'types' => array(
        LANGUAGE_TYPE_CONTENT,
        LANGUAGE_TYPE_INTERFACE,
        LANGUAGE_TYPE_URL,
      ),
      'callbacks' => array(
        'language' => 'language_cookie_language',
      ),
      'file' => drupal_get_path('module', 'language_cookie') . '/language_cookie.module',
      'weight' => -5,
      'name' => t('Cookie'),
      'description' => t('Determine the language from a cookie'),
      'config' => 'admin/config/regional/language/configure/cookie',
    ),
  );
}