You are here

function _customerror_enum_errors in Customerror 5

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

@file Enables custom 404 (not found) and 403 (access denied) pages in Drupal with no need for creating real nodes under taxonomies

3 calls to _customerror_enum_errors()
customerror_admin_settings in ./customerror.module
customerror_uninstall in ./customerror.install
_customerror_fetch_error in ./customerror.module

File

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

Code

function _customerror_enum_errors() {

  // This is where the error codes and their default descriptions are
  // stored. Add here as necessary.
  $errors = array(
    404 => t('requested page not found'),
    403 => t('access denied'),
  );

  // Sorting array here by keys so they are logically sorted on form
  ksort($errors);
  return $errors;
}