domain_theme_lookup($domain_id, $theme = NULL, $reset = FALSE)Get domain theme information
$domain_id The domain_id taken from {domain}.
$theme The string representation of a {domain_theme} entry. Optional. If this value is NULL, the default theme for this domain will be returned.
$reset A boolean flag to clear the static variable if necessary. Not used. Here for consistency.
An array containing the requested row from the {domain_theme} table. Returns -1 on failure.
domain_theme/domain_theme.module, line 127
<?php
function domain_theme_lookup($domain_id, $theme = NULL, $reset = FALSE) {
if (!is_null($theme)) {
$return = db_fetch_array(db_query("SELECT domain_id, theme, settings, status FROM {domain_theme} WHERE domain_id = %d AND theme= '%s'", $domain_id, $theme));
}
else {
$return = db_fetch_array(db_query("SELECT domain_id, theme, settings, status FROM {domain_theme} WHERE domain_id = %d AND status = 1", $domain_id));
}
if (empty($return)) {
$return = -1;
}
return $return;
}
?>