Monthly Archives: May 2012

Drupal 7: Load all terms in a Taxonomy vocabulary

There still isn’t a function for this, and the conditions in taxonomy_term_load_multiple have been deprecated, so an EntityFieldQuery is the only (and recommended) way to do this: $query = new EntityFieldQuery(); $result = $query ->entityCondition(‘entity_type’, ‘taxonomy_term’) ->propertyCondition(‘vid’, 2, ‘=’) // … Continue reading

Posted in Uncategorized | 3 Comments