domain_theme_page

Versions
domain
domain_theme_page($domain)

The domain theme page callback router.

Parameters

$domain The $domain object created by domain_lookup().

Code

domain_theme/domain_theme.admin.inc, line 16

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

Contact

  • agentrickard [at] gmail [dot] com

Donations

My Amazon.com Wish List