You are here

function customerror_theme in Customerror 8

Same name and namespace in other branches
  1. 6 customerror.module \customerror_theme()
  2. 7 customerror.module \customerror_theme()

Implements hook_theme() to add the template definition.

File

./customerror.module, line 93
Enables custom 404 (not found) and 403 (access denied) pages in Drupal with no need for creating real nodes under taxonomies.

Code

function customerror_theme($existing, $type, $theme, $path) {
  return [
    'customerror' => [
      'variables' => [
        'description' => NULL,
        'login_form' => NULL,
      ],
    ],
  ];
}