You are here

function domain_conf_page in Domain Access 5

Same name and namespace in other branches
  1. 6.2 domain_conf/domain_conf.admin.inc \domain_conf_page()
  2. 7.3 domain_conf/domain_conf.admin.inc \domain_conf_page()
  3. 7.2 domain_conf/domain_conf.admin.inc \domain_conf_page()

The domain conf page callback router.

Parameters

$domain_id: The unique identifier for this domain, taken from {domain}.

1 string reference to 'domain_conf_page'
domain_conf_menu in domain_conf/domain_conf.module
Implement hook_menu()

File

domain_conf/domain_conf.module, line 58
Domain manager configuration options.

Code

function domain_conf_page($domain_id) {
  global $_domain;
  $domain = domain_lookup($domain_id);
  $output = theme_domain_conf_reset($domain);
  if ($domain['domain_id'] > 0) {

    // Ensure we are on the proper domain.
    domain_goto($domain);
    drupal_set_title(t('@site : Domain site settings', array(
      '@site' => $domain['sitename'],
    )));
    return $output . drupal_get_form('system_site_information_settings');
  }
  else {
    if ($domain['domain_id'] == 0) {
      return $output . drupal_get_form('domain_conf_default', $domain);
    }
    else {
      return t('Invalid domain request.');
    }
  }
}