You are here

function cer_preset_enabled in Corresponding Entity References 7

Same name and namespace in other branches
  1. 7.2 cer.module \cer_preset_enabled()

Return 1 if CNR preset specified by given key is enabled.

1 call to cer_preset_enabled()
cer_settings_form in ./cer.admin.inc
The settings form.

File

./cer.module, line 112
Module file providing the "corresponding entity reference" module main functions.

Code

function cer_preset_enabled($key) {
  $preset = cer_preset_load($key);
  return empty($preset) ? 0 : $preset->enabled;
}