_coder_review_warning

Versions
mediamosa-21
_coder_review_warning($rule)

Return the formatted warning message from the $rule.

▾ 1 function calls _coder_review_warning()

theme_coder_review_warning_msg in sites/all/modules/coder/coder_review/coder_review.module
Format a coder_review warning to be included in results, creating the text.

Code

sites/all/modules/coder/coder_review/coder_review.module, line 1931

<?php
function _coder_review_warning($rule) {
  if (isset($rule['#warning_callback'])) {
    if (function_exists($rule['#warning_callback'])) {
      return $rule['#warning_callback']();
    }
    return t('please <a href="@report">report</a> this !warning',
      array(
        '@report' => 'http://drupal.org/node/add/project_issue/coder/bug',
        '!warning' => $rule['#warning_callback'],
      )
    );
  }
  return t($rule['#warning']);
}
?>