You are here

function _coder_security_db_rewrite_sql_warning in Coder 6.2

1 call to _coder_security_db_rewrite_sql_warning()
_coder_security_callback in includes/coder_security.inc
Define the rule callbacks.
1 string reference to '_coder_security_db_rewrite_sql_warning'
coder_security_reviews in includes/coder_security.inc
Implementation of hook_reviews().

File

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

Code

function _coder_security_db_rewrite_sql_warning() {
  return array(
    '#warning' => t('Potential problem: "SELECT FROM {node}" statements should probably be wrapped in !db_rewrite_sql() and with the alias for {node} table defined (e.g. {node} n)', array(
      '!db_rewrite_sql' => theme('drupalapi', 'db_rewrite_sql'),
    )),
  );
}