You are here

function regcode_og_create_rule in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_og/regcode_og.module \regcode_og_create_rule()

Create a new regcode rule

1 call to regcode_og_create_rule()
regcode_og_admin_submit in regcode_og/regcode_og.module
Create the roles

File

regcode_og/regcode_og.module, line 175

Code

function regcode_og_create_rule($category, $ogs) {
  foreach ($ogs as $og) {
    db_query("INSERT INTO {regcode_og} (category, og) VALUES ('%s', %d)", $category, $og);
  }
}