You are here

function taxonomy_edge_cron_rebuild in Taxonomy Edge 8

Same name and namespace in other branches
  1. 6 taxonomy_edge.module \taxonomy_edge_cron_rebuild()
  2. 7 taxonomy_edge.module \taxonomy_edge_cron_rebuild()

Rebuild edges

1 string reference to 'taxonomy_edge_cron_rebuild'
taxonomy_edge_cronapi in ./taxonomy_edge.module
Implements hook_cronapi(). Regularly rebuild the edge list

File

./taxonomy_edge.module, line 424
Selecting all children of a given taxonomy term can be a pain. This module makes it easier to do this, by maintaining a complete list of edges for each term using the adjecency matrix graph theory.

Code

function taxonomy_edge_cron_rebuild() {
  module_load_include('rebuild.inc', 'taxonomy_edge');
  foreach (taxonomy_vocabulary_load_multiple() as $vocabulary) {
    $context = array();
    taxonomy_edge_rebuild_edges($vocabulary->vid, $context);
    taxonomy_edge_rebuild_finished($context['success'], $context['results'], array());
  }
}