You are here

function reviews_reviews_enabled in Reviews 7

Helper function return TRUE or FALSE based on whether reviews are enabled.

2 calls to reviews_reviews_enabled()
reviews_enabled_load in ./reviews.module
Menu callback. Returns FALSE if content type does not allow reviews, otherwise returns the srgument passed from the URL.
reviews_user_reviewed_load in ./reviews.module
Menu callback. Returns the argument passed form the URL if content type allows reviews and reviews are enabled globally and the current user has not already reviewed the node.

File

includes/reviews.api.inc, line 37
This file contains API functions for the reviews system.

Code

function reviews_reviews_enabled() {
  if (variable_get('reviews_enabled', 0) == 0) {
    return FALSE;
  }
  else {
    return TRUE;
  }
}