You are here

function cctags_invoke_cctags_term_count in cctags 7

Invoke a hook_cctags_term_count() operation in all modules.

Parameters

&$term: A tags object.

Return value

none. example hook_cctags_term_count: function mymodyle_cctags_term_count(&$term) { if ($term->tid == 356) { $term->count = 10; return TRUE; } else { return FALSE; } }

1 call to cctags_invoke_cctags_term_count()
cctags_get_level_tags in ./cctags.module
Function that gets the information from the database, passes it along to the weight builder and returns these weighted tags. Note that the tags are unordered at this stage, hence they need orndering either by calling our api or by your own ordering data.

File

./cctags.module, line 182

Code

function cctags_invoke_cctags_term_count(&$term) {
  if (!module_invoke_all('cctags_term_count', $term)) {
    $count = _cctgas_node_in_terms($term->tid);
    $term->count = $count;
  }
}