function customerror_get_theme in Customerror 6
Same name and namespace in other branches
- 8 customerror.module \customerror_get_theme()
Gets the configured display theme for the given error code.
1 call to customerror_get_theme()
- customerror_page in ./
customerror.module - Displays the 403 or 404 error page.
File
- ./
customerror.module, line 334 - Enables custom 404 (not found) and 403 (access denied) pages in Drupal.
Code
function customerror_get_theme($code = 404) {
$theme = 0;
$admin_theme = variable_get('admin_theme', 0);
if ($admin_theme) {
$theme = variable_get('customerror_' . $code . '_theme', $admin_theme);
}
return $theme;
}