You are here

function regcode_dynamic_rules in Registration codes 6.2

Return all of the rules

2 calls to regcode_dynamic_rules()
regcode_dynamic_rules_list in regcode_dynamic/regcode_dynamic.module
List all of the rules as a HTML table
regcode_dynamic_user in regcode_dynamic/regcode_dynamic.module
Implementation of hook_user().

File

regcode_dynamic/regcode_dynamic.module, line 268
The dynamic code module creates codes on the fly as they are used.

Code

function regcode_dynamic_rules() {
  $res = db_query("SELECT name FROM {variable} WHERE name like 'regcode_dynamic_settings_%'");
  $rows = array();
  while ($row = db_fetch_array($res)) {
    $key = explode('_', $row['name']);
    $id = $key[3];
    $data = variable_get($row['name'], array());
    $data['id'] = $id;
    $rows[] = $data;
  }
  return $rows;
}