function domain_theme_page in Domain Access 6.2
Same name and namespace in other branches
- 5 domain_theme/domain_theme.module \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: The $domain object created by domain_lookup().
1 string reference to 'domain_theme_page'
- domain_theme_menu in domain_theme/
domain_theme.module - Implement hook_menu()
File
- domain_theme/
domain_theme.admin.inc, line 16 - Include file to handle theme configration screen
Code
function domain_theme_page($domain) {
global $custom_theme;
if (isset($domain['domain_id'])) {
// Set the custom theme, for display.
$custom_theme = variable_get('theme_default', 'garland');
$theme = domain_theme_lookup($domain['domain_id']);
// The above returns -1 on failure.
if ($theme != -1) {
$custom_theme = $theme['theme'];
drupal_set_message(t('You are viewing the active theme for %domain.', array(
'%domain' => $domain['sitename'],
)));
}
// Load the system form file.
include_once drupal_get_path('module', 'system') . '/system.admin.inc';
drupal_set_title(t('@site : Domain theme settings', array(
'@site' => $domain['sitename'],
)));
$output = theme_domain_theme_reset($domain);
return $output . drupal_get_form('system_themes_form');
}
else {
return t('Invalid domain request.');
}
}