| 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 |
| 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 |
/** |
/** |
| 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 |
|
} |