You are here

function regcode_categories in Registration codes 6

Categories

2 calls to regcode_categories()
regcode_admin_list_getfilters in ./regcode.admin.php
Build form elements for all of the defined filters
rules_condition_regcode_category_compare_form in ./regcode.rules.inc
Condition Regcode category: Form to select categories to match against

File

./regcode.api.php, line 166
A generic set of functions for interacting with and creating regcodes

Code

function regcode_categories() {
  $res = db_query('SELECT DISTINCT category FROM {regcode}');
  $categories = array();
  while ($category = db_fetch_array($res)) {
    $categories[] = $category['category'];
  }
  return $categories;
}