function TaxonomyVocabularyController::buildQuery

Overrides DrupalDefaultEntityController::buildQuery

File

modules/taxonomy/taxonomy.module, line 1293

Class

TaxonomyVocabularyController
Controller class for taxonomy vocabularies.

Code

protected function buildQuery($ids, $conditions = array(), $revision_id = FALSE) {
    $query = parent::buildQuery($ids, $conditions, $revision_id);
    $query->addTag('translatable');
    $query->orderBy('base.weight');
    $query->orderBy('base.name');
    return $query;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.