function _coder_security_trigger_error_filter_warning in Coder 6.2
Define the warning callbacks.
1 call to _coder_security_trigger_error_filter_warning()
- _coder_security_callback in includes/
coder_security.inc - Define the rule callbacks.
1 string reference to '_coder_security_trigger_error_filter_warning'
- coder_security_reviews in includes/
coder_security.inc - Implementation of hook_reviews().
File
- includes/
coder_security.inc, line 394 - This include file implements coder functionality for Drupal Standards.
Code
function _coder_security_trigger_error_filter_warning() {
return array(
'#warning' => t('Potential problem: !trigger_error() only accepts filtered text, be sure to use !check_plain(), !filter_xss() or similar to ensure your $variable is fully sanitized.', array(
'!trigger_error' => theme('phpapi', 'trigger_error'),
'!check_plain' => theme('drupalapi', 'check_plain'),
'!filter_xss' => theme('drupalapi', 'filter_xss'),
)),
'#link' => 'http://drupal.org/node/28984',
);
}