You are here

function cctags_invoke_term_count in cctags 6

Invoke a hook_term_count() operation in all modules.

Parameters

&$term: A tags object.

Return value

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

4 calls to cctags_invoke_term_count()
cctags_cron in ./cctags.module
Implementation of hook_cron
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.
cctags_nodeapi in ./cctags.module
Implementation of hook_nodeapi
cctags_node_get_terms in ./cctags.module
API that returns a multidimensional array with tags given a node

File

./cctags.module, line 292

Code

function cctags_invoke_term_count(&$term) {
  if (!module_invoke_all('term_count', $term)) {
    $term->count = taxonomy_term_count_nodes($term->tid, 0);
  }
}