You are here

function taxonomy_edge_install in Taxonomy Edge 6

Same name and namespace in other branches
  1. 8 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() {
  $ret = array();
  $ret[] = drupal_install_schema('taxonomy_edge');
  db_add_index($ret, 'node', 'idx_taxonomy_edge', array(
    'sticky',
    'created',
    'nid',
  ));
  db_add_index($ret, 'term_node', 'idx_taxonomy_edge', array(
    'vid',
    'tid',
  ));
  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 > Content > Taxonomy Edge'), 'admin/content/taxonomy/edge'),
  )));
  drupal_set_message(st('Remember to build trees: !link', array(
    '!link' => l(st('Administer > Content > Taxonomy'), 'admin/content/taxonomy'),
  )));
  return $ret;
}