You are here

function filedepot_is_ogmode_enabled in filedepot 7

Checks to see if OG mode is enabled or not

Return value

Boolean True if enabled, False if not

1 call to filedepot_is_ogmode_enabled()
filedepot_main in ./filedepot.module
Implementation of hook_main().

File

./filedepot.module, line 622
filedepot.module Filedepot: File Management Module developed by Nextide www.nextide.ca Full featured document managment module with a desktop application feel. Integrated Organic Group, Role and User permissions to secure folders, automated…

Code

function filedepot_is_ogmode_enabled() {
  if ((module_exists('og') and module_exists('og_access')) && variable_get('filedepot_organic_group_mode_enabled', 0) == 1) {
    return TRUE;
  }
  else {
    return FALSE;
  }
}