Custom Taxonomy Module

PHP code in module format (stored as custom_taxonomy.module) to extend Drupal's taxonomy functions.

Functions:

  1. _BUILD_VOCAB_TREE (Builds taxonomy tree with terms as hyperlinks)
  2. _VOCABULARY_TABLE (Returns a list of site vocabularies with their VID in a table)
  3. _GET_RELATED_TERMS (Returns related terms in either an array or comma separated string. Related terms are ones at same level in vocabulary tree)
  4. _GET_NARROWER_TERMS (Returns narrower terms in either an array or comma separated string. Only the immediate children are returned.)
  5. _GET_BROADER_TERMS (Returns broader terms in either an array or breadcrumb string)
  6. _GET_TERM_ID (Returns TID from Term Name)
  7. _GET_TERM_NAME (Returns Term Name from TID)
  8. _GET_TERM_VID (Returns VID from TID)

File: