You are here

function similarterms_taxonomy_get_vocabularies in Similar By Terms 6

Same name and namespace in other branches
  1. 7 similarterms.module \similarterms_taxonomy_get_vocabularies()

This function gets taxonomy vocabularies and add in 0 for "all vocabs";

3 calls to similarterms_taxonomy_get_vocabularies()
similarterms_form_alter in ./similarterms.module
Implementation of hook_form_alter().
similarterms_node_save in ./similarterms.module
Function to populate overrides table
similarterms_node_validate in ./similarterms.module
Function to validate entries into the overrides table

File

./similarterms.module, line 556
Similar By Terms module displays a block with similar content based on taxonomy terms.

Code

function similarterms_taxonomy_get_vocabularies() {
  $object = taxonomy_get_vocabularies();
  $object[0]->vid = 0;
  $object[0]->name = t('Any Vocabulary');
  return $object;
}