You are here

function _taxonomy_menu_get_parents in Taxonomy menu 6.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. 7.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

2 calls to _taxonomy_menu_get_parents()
_taxonomy_menu_nodeapi_helper in ./taxonomy_menu.module
Helper function to
_taxonomy_menu_update_link_items in ./taxonomy_menu.module
Update the menu items

File

./taxonomy_menu.database.inc, line 90
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;
}