You are here

function customerror_theme_registry_alter in Customerror 7

Implements hook_theme_registry_alter()

File

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

Code

function customerror_theme_registry_alter(&$theme_registry) {
  if (module_exists('logintoboggan')) {
    $theme_registry['lt_access_denied']['theme path'] = drupal_get_path('module', 'customerror');
    $theme_registry['lt_access_denied']['function'] = '_customerror__theme_lt_access_denied';
  }
}