function _customerror_enum_errors in Customerror 5
Same name and namespace in other branches
- 6 customerror.module \_customerror_enum_errors()
- 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()
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;
}