You are here

function do_coder_review_callback in Coder 7

Same name and namespace in other branches
  1. 5.2 coder.module \do_coder_review_callback()
  2. 5 coder.module \do_coder_review_callback()
  3. 6.2 coder.module \do_coder_review_callback()
  4. 6 coder.module \do_coder_review_callback()
  5. 7.2 coder_review/coder_review.common.inc \do_coder_review_callback()

Allow for an arbitrary callback function to perform a review.

See also

do_coder_review_regex()

1 call to do_coder_review_callback()
do_coder_review in coder_review/coder_review.module
Perform code review for a review array.

File

coder_review/coder_review.module, line 1897

Code

function do_coder_review_callback(&$coder_args, $review, $rule, $lines, &$results) {
  if ($function = $rule['#value']) {
    if (function_exists($function)) {
      call_user_func_array($function, array(
        &$coder_args,
        $review,
        $rule,
        $lines,
        &$results,
      ));
    }
  }
}