function customerror_header in Customerror 5
Same name and namespace in other branches
- 8 customerror.module \customerror_header()
- 6 customerror.module \customerror_header()
- 7 customerror.module \customerror_header()
1 call to customerror_header()
File
- ./
customerror.module, line 174 - Enables custom 404 (not found) and 403 (access denied) pages in Drupal with no need for creating real nodes under taxonomies
Code
function customerror_header($code) {
switch ($code) {
case 403:
drupal_set_header('HTTP/1.1 403 Forbidden');
break;
case 404:
drupal_set_header('HTTP/1.1 404 Not Found');
break;
}
}