You are here

function gallery_assist_on in Gallery Assist 7

Give information if a content type has assigned gallery functionality.

Parameters

$type: A string containing the machine name of the content type should be checked.

Return value

A bolean value.

3 calls to gallery_assist_on()
gallery_assist_form_alter in ./gallery_assist.module
Implements hook_form_alter().
gallery_assist_node_view in ./gallery_assist.module
_gallery_assist_node_view in ./gallery_assist.module
Implements hook_node_view().

File

./gallery_assist.module, line 1083
Extend drupal with gallery functionalities. Manage galleries.

Code

function gallery_assist_on($on) {
  $type = is_object($on) ? $on->type : $on;
  return variable_get("gallery_assist_{$type}", 0) == 1 ? TRUE : FALSE;
}