function domain_theme_page in Domain Access 5
Same name and namespace in other branches
- 6.2 domain_theme/domain_theme.admin.inc \domain_theme_page()
- 7.3 domain_theme/domain_theme.admin.inc \domain_theme_page()
- 7.2 domain_theme/domain_theme.admin.inc \domain_theme_page()
The domain theme page callback router.
Parameters
$domain_id: The unique identifier for this domain, taken from {domain}.
1 string reference to 'domain_theme_page'
- domain_theme_menu in domain_theme/
domain_theme.module - Implement hook_menu()
File
- domain_theme/
domain_theme.module, line 64 - Domain Theme module for the Domain Access module group.
Code
function domain_theme_page($domain_id) {
global $_domain;
$domain = domain_lookup($domain_id);
$output = theme_domain_theme_reset($domain);
if ($domain['domain_id']) {
// Ensure we are on the proper domain.
domain_goto($domain);
drupal_set_title(t('@site : Domain theme settings', array(
'@site' => $domain['sitename'],
)));
include_once 'domain_theme_form.inc';
return $output . drupal_get_form('system_themes');
}
else {
return t('Invalid domain request.');
}
}