You are here

function page_theme_load in Page Theme 7

Same name and namespace in other branches
  1. 6 page_theme.module \page_theme_load()

File

./page_theme.module, line 99
This module allows to use different themes than the site default on specific pages.

Code

function page_theme_load($theme) {
  $page_theme = db_query('SELECT theme, pages, status, weight FROM {page_theme} WHERE theme = :theme', array(
    ':theme' => $theme,
  ))
    ->fetchObject();
  return $page_theme;
}