function language_selection_page_install in Language Selection Page 7.2
Same name and namespace in other branches
- 7 language_selection_page.install \language_selection_page_install()
Implements hook_install().
File
- ./
language_selection_page.install, line 67 - Module installation code.
Code
function language_selection_page_install() {
$default_blacklist_paths = array(
'admin',
'user',
'admin/*',
'admin*',
'node/add/*',
'node/*/edit',
);
variable_set('language_selection_page_blacklisted_paths', implode(PHP_EOL, $default_blacklist_paths));
variable_set('language_selection_page_redirect_type', LANGUAGE_SELECTION_PAGE_TEMPLATE_ONLY);
variable_set('language_selection_page_path', 'language_selection');
}