You are here

function taxonomy_breadcrumb_install in Taxonomy Breadcrumb 6

Same name and namespace in other branches
  1. 8 taxonomy_breadcrumb.install \taxonomy_breadcrumb_install()
  2. 5 taxonomy_breadcrumb.install \taxonomy_breadcrumb_install()
  3. 7 taxonomy_breadcrumb.install \taxonomy_breadcrumb_install()

Implementation of hook_install().

File

./taxonomy_breadcrumb.install, line 11
.install file for the taxonomy_breadcrumb module.

Code

function taxonomy_breadcrumb_install() {

  // Create tables.
  drupal_install_schema('taxonomy_breadcrumb');
  $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
  db_query("UPDATE {system} SET weight = %d WHERE name = 'taxonomy_breadcrumb'", $weight + 1);
  drupal_set_message('Taxonomy breadcrumb: Taxonomy based breadcrumbs should now appear on node pages and taxonomy/term pages.  For the most common applications this module will work "out of the box" and no further configuration is necessary.  If customization is desired settings can be changed on the ' . l('administration page', 'admin/settings/taxonomy-breadcrumb') . '.');
}