You are here

function image_gallery_is_using_views in Image 5.2

Test whether we're using Views to generate galleries or not

2 calls to image_gallery_is_using_views()
image_gallery_admin_settings in contrib/image_gallery/image_gallery.module
image_gallery_page in contrib/image_gallery/image_gallery.module
Image gallery callback, displays an image gallery

File

contrib/image_gallery/image_gallery.module, line 84

Code

function image_gallery_is_using_views() {
  if (module_exists('views')) {

    // If the variable isn't set then nothing is disabled, if it's set it needs to be enabled.
    $views_status = variable_get('views_defaults', array());
    return !isset($views_status['image_gallery']) || $views_status['image_gallery'] == 'enabled';
  }
  return FALSE;
}