function context_error_context_condition_error::is_error in Context error 7
Helper function to decide wether we are on a 404 or 403 page or not.
1 call to context_error_context_condition_error::is_error()
- context_error_context_condition_error::execute in plugins/
context_error_context_conditions.inc - Execute.
File
- plugins/
context_error_context_conditions.inc, line 78 - Context condition plugin to provide a trigger for 404 and 403 error pages.
Class
- context_error_context_condition_error
- Expose the 404 error page as the context condition.
Code
function is_error($header_status) {
foreach ($this->known_errors as $error => $status) {
if ($status == $header_status) {
return TRUE;
}
}
return FALSE;
}