You are here

function recipe_get_recipe_terms in Recipe 5

Get all the terms associated with Recipes.

Return value

an array of unique term ids.

2 calls to recipe_get_recipe_terms()
recipe_get_latest in ./recipe.module
Get the latest recipes
recipe_page in ./recipe.module
Menu Callback - created output for the main recipe page.

File

./recipe.module, line 1161
recipe.module - share recipes for drupal 5.x

Code

function recipe_get_recipe_terms() {
  $vocabs = recipe_get_vocabularies();
  $tids = array();
  foreach ($vocabs as $vocab) {
    $tids = array_merge($tids, recipe_tax_get_terms($vocab->vid));
  }
  return array_unique($tids);
}