function cdn_status_is_enabled in CDN 6.2
Same name and namespace in other branches
- 7.2 cdn.module \cdn_status_is_enabled()
Check if the CDN module is enabled.
3 calls to cdn_status_is_enabled()
- cdn_file_url_alter in ./
cdn.module - Implementation of hook_file_url_alter().
- cdn_init in ./
cdn.module - Implementation of hook_init().
- cdn_theme_registry_alter in ./
cdn.module - Implementation of hook_theme_registry_alter().
File
- ./
cdn.module, line 695
Code
function cdn_status_is_enabled() {
$status = variable_get(CDN_STATUS_VARIABLE, CDN_DISABLED);
return $status == CDN_ENABLED || $status == CDN_TESTING && user_access(CDN_PERM_ACCESS_TESTING);
}