domain_theme_page

Definition

domain_theme_page($domain_id)
domain_theme/domain_theme.module, line 59

Description

The domain theme page callback router.

Parameters

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

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.');
  }
}