You are here

function _colors_taxonomy_term_callback in Colors 7

Wrapper around taxonomy_get_tree().

Parameters

int $vid: The vocabulary ID.

Return value

array An array keyed by term ID, containing the term name.

1 string reference to '_colors_taxonomy_term_callback'
taxonomy_colors_info in includes/taxonomy.colors.inc
Implements hook_colors_info().

File

includes/taxonomy.colors.inc, line 32
Provides Color integration on behalf of taxonomy.module.

Code

function _colors_taxonomy_term_callback($vid) {
  $terms = array();
  foreach (taxonomy_get_tree($vid) as $term) {
    $terms[$term->tid] = $term->name;
  }
  return $terms;
}