You are here

function _taxonomy_breadcrumb_get_term_path in Taxonomy Breadcrumb 7

Same name and namespace in other branches
  1. 6 taxonomy_breadcrumb.inc \_taxonomy_breadcrumb_get_term_path()

Return the administrator defined term path for a given term ($tid). If a path doesn't exist, NULL is returned.

3 calls to _taxonomy_breadcrumb_get_term_path()
taxonomy_breadcrumb_form_taxonomy_form_term_alter in ./taxonomy_breadcrumb.module
Implements hook_form_FORM_ID_alter().
taxonomy_breadcrumb_taxonomy in ./taxonomy_breadcrumb.module
Checks to see if a vocabulary or term is being updated and makes the necessary changes in the taxonomy_breadcrumb database tables.
_taxonomy_breadcrumb_generate_breadcrumb in ./taxonomy_breadcrumb.inc
If the current drupal path (q=) is /node/nid, generate the breadcrumb trail based on nid.

File

./taxonomy_breadcrumb.inc, line 74
helper functions for taxonomy_breadcrumb

Code

function _taxonomy_breadcrumb_get_term_path($tid) {
  $path = db_query("SELECT path FROM {taxonomy_breadcrumb_term} WHERE tid = :tid", array(
    ':tid' => $tid,
  ))
    ->fetchField();
  return $path;
}