function domain_conf_page in Domain Access 7.3
Same name and namespace in other branches
- 5 domain_conf/domain_conf.module \domain_conf_page()
- 6.2 domain_conf/domain_conf.admin.inc \domain_conf_page()
- 7.2 domain_conf/domain_conf.admin.inc \domain_conf_page()
The domain conf page callback router.
Parameters
$domain: The $domain object created by domain_lookup().
Return value
The appropriate form or an error message.
1 string reference to 'domain_conf_page'
- domain_conf_menu in domain_conf/
domain_conf.module - Implements hook_menu()
File
- domain_conf/
domain_conf.admin.inc, line 20 - Domain manager configuration options.
Code
function domain_conf_page($domain) {
if ($domain == -1) {
return t('Invalid page requested.');
}
if ($domain['domain_id'] == domain_default_id()) {
drupal_set_message(t('This is your default domain. Use of this form is discouraged. Set these values through the standard interface.'), 'warning', FALSE);
}
$output = theme('domain_conf_reset', array(
'domain' => $domain,
));
drupal_set_title(t('Settings for !site', array(
'!site' => $domain['subdomain'],
)));
$form = drupal_get_form('domain_conf_form', $domain);
$form['intro'] = array(
'#weight' => -5,
'#markup' => $output,
);
return $form;
}