/[drupal]/contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.install
ViewVC logotype

Diff of /contributions/modules/taxonomy_breadcrumb/taxonomy_breadcrumb.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6, Mon Jan 12 02:19:26 2009 UTC revision 1.7, Thu Mar 12 18:51:39 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: taxonomy_breadcrumb.install,v 1.5 2008/03/15 17:48:12 craig Exp $  // $Id: taxonomy_breadcrumb.install,v 1.6 2009/01/12 02:19:26 mgn Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 13  function taxonomy_breadcrumb_install() { Line 13  function taxonomy_breadcrumb_install() {
13    // Create tables.    // Create tables.
14    drupal_install_schema('taxonomy_breadcrumb');    drupal_install_schema('taxonomy_breadcrumb');
15    
16      $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
17      db_query("UPDATE {system} SET weight = %d WHERE name = 'taxonomy_breadcrumb'", $weight + 1);
18    
19    variable_set('taxonomy_breadcrumb_home', t('Home'));    variable_set('taxonomy_breadcrumb_home', t('Home'));
20    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') .'.');    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') .'.');
21    
22  }  }
23    
24  /**  /**
# Line 81  function taxonomy_breadcrumb_update_1() Line 85  function taxonomy_breadcrumb_update_1()
85    return $ret;    return $ret;
86  }  }
87    
88    function taxonomy_breadcrumb_update_6001() {
89      // Ensure this module's weight is larger than the core taxonomy module.
90      // This allows for this module's menu callback for taxonomy/term to get called
91      // instead of the core taxonomy/term callback.
92      $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
93      db_query("UPDATE {system} SET weight = %d WHERE name = 'taxonomy_breadcrumb'", $weight + 1);
94    }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

  ViewVC Help
Powered by ViewVC 1.1.2