function language_selection_page_selection_page in Language Selection Page 7
Same name and namespace in other branches
- 6 language_selection_page.pages.inc \language_selection_page_selection_page()
- 7.2 language_selection_page.pages.inc \language_selection_page_selection_page()
Menu callback to display the selection page.
1 string reference to 'language_selection_page_selection_page'
- language_selection_page_menu in ./
language_selection_page.module - Implements hook_menu().
File
- ./
language_selection_page.pages.inc, line 10 - Contains menu callback functions for pages defined in this module
Code
function language_selection_page_selection_page() {
$language_selection_page = language_selection_page_selection_page_data();
$content = language_selection_page_selection_page_content($language_selection_page);
switch (variable_get('language_selection_page_redirect_type', LANGUAGE_SELECTION_PAGE_TEMPLATE_ONLY)) {
case LANGUAGE_SELECTION_PAGE_TEMPLATE_IN_THEME:
return $content;
break;
case LANGUAGE_SELECTION_PAGE_TEMPLATE_ONLY:
drupal_add_css(drupal_get_path('module', 'language_selection_page') . '/themes/css/language_selection_page.css');
$html['title'] = t("Language selection");
$html['page']['#children'] = $content;
$html['language_selection_page'] = $language_selection_page;
print theme('html', $html);
exit;
}
}