You are here

function taxonomy_edge_install in Taxonomy Edge 8

Same name and namespace in other branches
  1. 6 taxonomy_edge.install \taxonomy_edge_install()
  2. 7.2 taxonomy_edge.install \taxonomy_edge_install()
  3. 7 taxonomy_edge.install \taxonomy_edge_install()

Implements hook_install().

File

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

Code

function taxonomy_edge_install() {
  db_add_index('node', 'idx_taxonomy_edge', array(
    'sticky',
    'created',
    'nid',
  ));
  drupal_set_message(st('Taxonomy Edge is now installed. Add the provided patch to the core module Taxonomy module for better performance.'));
  drupal_set_message(st('Taxonomy Edge settings are available under !link', array(
    '!link' => l(st('Administer > Structure > Taxonomy'), 'admin/structure/taxonomy/edge'),
  )));
  drupal_set_message(st('Remember to build trees: !link', array(
    '!link' => l(st('Administer > Structure > Taxonomy'), 'admin/structure/taxonomy'),
  )));
}