function _coder_review_security_fapi_title_description_warning in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/includes/coder_review_security.inc \_coder_review_security_fapi_title_description_warning()
1 call to _coder_review_security_fapi_title_description_warning()
- _coder_review_security_callback in coder_review/
includes/ coder_review_security.inc - Define the rule callbacks.
File
- coder_review/
includes/ coder_review_security.inc, line 503 - This include file implements coder functionality for Drupal Standards.
Code
function _coder_review_security_fapi_title_description_warning() {
return array(
'#text' => "Potential problem: FAPI elements '#title' and '#description' only accept filtered text, be sure to use !check_plain(), !filter_xss() or similar to ensure your \$variable is fully sanitized.",
'#args' => array(
'!hook_form' => _drupalapi('hook_form'),
'!check_plain' => _drupalapi('check_plain'),
'!filter_xss' => _drupalapi('filter_xss'),
),
'#link' => _drupalnode(28984),
);
}