You are here

function _coder_security_fapi_title_description_warning in Coder 6.2

1 call to _coder_security_fapi_title_description_warning()
_coder_security_callback in includes/coder_security.inc
Define the rule callbacks.

File

includes/coder_security.inc, line 625
This include file implements coder functionality for Drupal Standards.

Code

function _coder_security_fapi_title_description_warning() {
  return array(
    '#warning' => t("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.", array(
      '!hook_form' => theme('drupalapi', 'hook_form'),
      '!check_plain' => theme('drupalapi', 'check_plain'),
      '!filter_xss' => theme('drupalapi', 'filter_xss'),
    )),
    '#link' => 'http://drupal.org/node/28984',
  );
}