You are here

function flag_lists_get_templates in Flag Lists 6

Same name and namespace in other branches
  1. 7.3 flag_lists.module \flag_lists_get_templates()
  2. 7 flag_lists.module \flag_lists_get_templates()

Get a list of template flag names.

2 calls to flag_lists_get_templates()
flag_lists_generate_lists_form in ./flag_lists.admin.inc
flag_lists_handler_filter_template::get_value_options in includes/flag_lists_handler_filter_template.inc

File

./flag_lists.module, line 1114
The Flag Lists module.

Code

function flag_lists_get_templates() {
  $result = db_query("SELECT DISTINCT name FROM {flag_lists_types}");
  while ($row = db_fetch_array($result)) {
    $templates[] = flag_get_flag($row['name']);
  }
  return $templates;
}