You are here

function taxonomy_edge_enable in Taxonomy Edge 7.2

Same name and namespace in other branches
  1. 6 taxonomy_edge.install \taxonomy_edge_enable()

Implements hook_enable().

File

./taxonomy_edge.install, line 30
Installation file for Taxonomy Edge

Code

function taxonomy_edge_enable() {
  return;

  // Rebuild the edge list when module is enabled
  drupal_load('module', 'taxonomy');
  drupal_load('module', 'taxonomy_edge');
  module_load_include('rebuild.inc', 'taxonomy_edge');
  foreach (taxonomy_get_vocabularies() as $vocabulary) {
    taxonomy_edge_rebuild_edges_batch($vocabulary->vid);
    taxonomy_edge_rebuild_order_batch($vocabulary->vid);
  }
}