You are here

function _coder_review_security_eval_warning in Coder 7

1 string reference to '_coder_review_security_eval_warning'
coder_review_security_reviews in coder_review/includes/coder_review_security.inc
Implements hook_reviews().

File

coder_review/includes/coder_review_security.inc, line 603
This include file implements coder functionality for Drupal Standards.

Code

function _coder_review_security_eval_warning() {
  return array(
    '#warning' => t("Using !eval() or !drupal_eval() in your module's code could have a security risk if the PHP input provided to the function contains malicious code.", array(
      '!eval' => theme('phpapi', array(
        'function' => 'eval',
      )),
      '!drupal_eval' => theme('drupalapi', array(
        'function' => 'drupal_eval',
      )),
    )),
    '#link' => url('http://drupal.org/node/715010'),
  );
}