You are here

function taxonomy_breadcrumb_install in Taxonomy Breadcrumb 7

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

Implements hook_install().

File

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

Code

function taxonomy_breadcrumb_install() {

  // Create tables.
  $weight = (int) db_query("SELECT weight FROM {system} WHERE name = :name", array(
    ':name' => 'taxonomy',
  ))
    ->fetchField();
  db_update('system')
    ->fields(array(
    'weight' => $weight + 1,
  ))
    ->condition('name', 'taxonomy_breadcrumb')
    ->execute();
  drupal_set_message('Taxonomy breadcrumb: Taxonomy-based breadcrumbs can now be configured for node pages and taxonomy/term pages on the ' . l('administration page', 'admin/config/user-interface/taxonomy-breadcrumb') . '.');
}