You are here

function customerror_custom_theme in Customerror 7

Implements hook_custom_theme().

Will return custom theme for error_page if custom has been selected, 0 => default.

Return value

string The machine readable name of the theme to use.

File

./customerror.module, line 374
Enables custom 404 (not found) and 403 (access denied) pages in Drupal.

Code

function customerror_custom_theme() {
  $theme = variable_get('customerror_theme', 0);
  if (!$theme) {
    return;
  }
  if (drupal_valid_path(current_path())) {
    return;
  }
  return $theme;
}