You are here

function _coder_review_reviews in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/coder_review.module \_coder_review_reviews()

Creates a list of all modules that implement hook_reviews().

Return value

array An array of return values of the from hook_reviews() implementations.

4 calls to _coder_review_reviews()
coder_review_page_form in coder_review/coder_review.module
Implements hook_form().
drush_coder_review in coder_review/coder_review.drush.inc
Performs the actual review for drush.
theme_coder_review_warning in coder_review/coder_review.common.inc
Returns HTML for a coder_review warning to be included in results.
_coder_review_settings_form in coder_review/coder_review.module
Form constructor: Builds settings form API array for coder_review.
2 string references to '_coder_review_reviews'
coder_review_page_form in coder_review/coder_review.module
Implements hook_form().
_coder_review_settings_form in coder_review/coder_review.module
Form constructor: Builds settings form API array for coder_review.

File

coder_review/coder_review.common.inc, line 29
Common functions used by both the drush and form interfaces.

Code

function _coder_review_reviews() {
  static $cache = array();
  if (!$cache) {

    // Always get the coder review.
    $cache = coder_review_reviews();

    // When Drupal is bootstrapped, also get all reviews.
    if (function_exists('module_invoke_all')) {
      $cache = array_merge($cache, module_invoke_all('reviews'));
    }
  }
  return $cache;
}