You are here

function regcode_og_name_exists in Registration codes 7

Same name and namespace in other branches
  1. 7.2 regcode_og/regcode_og.module \regcode_og_name_exists()

Returns true if a rule with the given machine_name exists.

1 string reference to 'regcode_og_name_exists'
regcode_og_create in regcode_og/regcode_og.module
Form: Create form for og assignment rules.

File

regcode_og/regcode_og.module, line 223
Install, uninstall and scheme functions for the regcode_og module.

Code

function regcode_og_name_exists($value) {
  $settings = variable_get('regcode_og_settings', array());
  return isset($settings[$value]);
}