You are here

function theme_coder_review_warning_msg in Coder 7

Format a coder_review warning to be included in results, creating the text.

Parameters

$results: Results array variable to save errors to.

$error: Error array from _coder_review_error().

1 theme call to theme_coder_review_warning_msg()
do_coder_reviews in coder_review/coder_review.module
Perform batch coder reviews for multiple files.

File

coder_review/coder_review.module, line 2084

Code

function theme_coder_review_warning_msg($variables) {
  $error = $variables['error'];

  // @TODO: we can combine theme_coder_review_warning() and theme_coder_review_warning_msg(),
  // But let's do this on the 7.x upgrade in case anyone's actually using it.
  return theme('coder_review_warning', array(
    'warning' => _coder_review_warning($error['rule']),
    'severity_name' => $error['severity_name'],
    'lineno' => $error['lineno'],
    'line' => $error['line'],
  ));
}