function domain_theme_page in Domain Access 7.2
Same name and namespace in other branches
- 5 domain_theme/domain_theme.module \domain_theme_page()
- 6.2 domain_theme/domain_theme.admin.inc \domain_theme_page()
- 7.3 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 - Implements hook_menu()
File
- domain_theme/
domain_theme.admin.inc, line 16 - Include file to handle theme configration screen
Code
function domain_theme_page($domain) {
if (isset($domain['domain_id'])) {
// Load the system form file.
include_once drupal_get_path('module', 'system') . '/system.admin.inc';
// Set the page title and generate the form.
drupal_set_title(t('@site : Domain theme settings', array(
'@site' => $domain['sitename'],
)));
return drupal_get_form('domain_theme_form', $domain);
}
else {
$build['content'] = array(
'#markup' => t('Invalid domain request.'),
);
return $build;
}
}