You are here

function administration_language_negotiation_install in Administration Language Negotiation 7

Implements hook_install().

File

./administration_language_negotiation.install, line 11
The install page of the administration language negotiation module.

Code

function administration_language_negotiation_install() {
  if (empty(variable_get('administration_language_negotiation_paths', array()))) {
    variable_set('administration_language_negotiation_paths', array(
      '*admin',
      '*admin/*',
      '*node/*/edit*',
      '*node/*/translate*',
      '*admin_menu/*',
      '/*/admin/*',
      '/*/node/*/edit',
      '/*/node/*/translate',
      '/*/admin_menu/*',
    ));
  }
  if (empty(variable_get('administration_language_negotiation_default', NULL))) {
    $language_default = language_default();
    variable_set('administration_language_negotiation_default', $language_default->language);
  }
}