function recipe_tax_get_terms in Recipe 5
Get all the terms in a given vocabulary.
Return value
an array of unique term ids.
1 call to recipe_tax_get_terms()
- recipe_get_recipe_terms in ./
recipe.module  - Get all the terms associated with Recipes.
 
File
- ./
recipe.module, line 1330  - recipe.module - share recipes for drupal 5.x
 
Code
function recipe_tax_get_terms($vid) {
  $result = db_query("SELECT tid FROM {term_data} WHERE vid = %d", $vid);
  $tids = array();
  while ($term = db_fetch_array($result)) {
    $tids[] = $term['tid'];
  }
  return array_unique($tids);
}