You are here

function _taxonomy_menu_get_parents in Taxonomy menu 7.2

Same name and namespace in other branches
  1. 8 taxonomy_menu.database.inc \_taxonomy_menu_get_parents()
  2. 6.3 taxonomy_menu.database.inc \_taxonomy_menu_get_parents()
  3. 6.2 taxonomy_menu.database.inc \_taxonomy_menu_get_parents()
  4. 7 taxonomy_menu.database.inc \_taxonomy_menu_get_parents()

Get an array of the tid's from the parent

Parameters

$tid:

Return value

array of tid

File

./taxonomy_menu.database.inc, line 150
Database functions.

Code

function _taxonomy_menu_get_parents($tid) {
  $output = array();
  $result = taxonomy_get_parents($tid);
  foreach ($result as $key => $item) {
    $output[] = $key;
  }
  return $output;
}