function TaxonomyTermController::cacheGet

Overrides DrupalDefaultEntityController::cacheGet

1 call to TaxonomyTermController::cacheGet()
TestTaxonomyTermController::loadFromCache in modules/simpletest/tests/taxonomy_test.module

File

modules/taxonomy/taxonomy.module, line 1271

Class

TaxonomyTermController
Controller class for taxonomy terms.

Code

protected function cacheGet($ids, $conditions = array()) {
    $terms = parent::cacheGet($ids, $conditions);
    // Name matching is case insensitive, note that with some collations
    // LOWER() and drupal_strtolower() may return different results.
    foreach ($terms as $term) {
        $term_values = (array) $term;
        if (isset($conditions['name']) && drupal_strtolower($conditions['name']) != drupal_strtolower($term_values['name'])) {
            unset($terms[$term->tid]);
        }
    }
    return $terms;
}

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