You are here

function _update_7002_taxonomy_get_vocabularies in Drupal 7

Utility function: get the list of vocabularies directly from the database.

This function is valid for a database schema version 7002.

Related topics

1 call to _update_7002_taxonomy_get_vocabularies()
taxonomy_update_7004 in modules/taxonomy/taxonomy.install
Move taxonomy vocabulary associations for nodes to fields and field instances.

File

modules/taxonomy/taxonomy.install, line 271
Install, update and uninstall functions for the taxonomy module.

Code

function _update_7002_taxonomy_get_vocabularies() {
  return db_query('SELECT v.* FROM {taxonomy_vocabulary} v ORDER BY v.weight, v.name')
    ->fetchAllAssoc('vid', PDO::FETCH_OBJ);
}