function customerror_page_title in Customerror 7
Return the page title associated to the customerror code.
1 string reference to 'customerror_page_title'
- customerror_menu in ./
customerror.module - Implements hook_menu().
File
- ./
customerror.module, line 179 - Enables custom 404 (not found) and 403 (access denied) pages in Drupal.
Code
function customerror_page_title($code) {
module_invoke_all('customerror_pre_render', $code);
if (module_exists('customerroralt') && customerroralt_code($code)) {
$code = customerroralt_code($code);
}
$desc = _customerror_fetch_error($code);
return variable_get('customerror_' . $code . '_title', $desc[0]);
}