You are here

function taxonomy_hierarchical_select_valid_item in Hierarchical Select 5.2

Same name and namespace in other branches
  1. 5 modules/taxonomy.inc \taxonomy_hierarchical_select_valid_item()

Implementation of hook_hierarchical_select_valid_item().

File

modules/taxonomy.inc, line 293

Code

function taxonomy_hierarchical_select_valid_item($item, $params) {
  if (!is_numeric($item) || $item < 1) {
    return FALSE;
  }
  $term = taxonomy_get_term($item);
  return $term->vid == $params['vid'];
}