function taxonomy_edge_cron in Taxonomy Edge 7
Same name and namespace in other branches
- 8 taxonomy_edge.module \taxonomy_edge_cron()
- 6 taxonomy_edge.module \taxonomy_edge_cron()
- 7.2 taxonomy_edge.module \taxonomy_edge_cron()
Implements hook_cron().
Rebuild sorted tree if invalid
1 string reference to 'taxonomy_edge_cron'
- taxonomy_edge_cronapi in ./
taxonomy_edge.module - Implements hook_cronapi().
File
- ./
taxonomy_edge.module, line 166 - Optimization of taxonomy data model for SQL performance.
Code
function taxonomy_edge_cron() {
module_load_include('rebuild.inc', 'taxonomy_edge');
foreach (taxonomy_get_vocabularies() as $vocabulary) {
if (!taxonomy_edge_is_order_valid($vocabulary->vid)) {
$context = array();
taxonomy_edge_rebuild_order($vocabulary->vid, $context);
taxonomy_edge_rebuild_finished($context['success'], $context['results'], array());
}
}
}