You are here

function taxonomy_breadcrumb_update_6001 in Taxonomy Breadcrumb 6

Same name and namespace in other branches
  1. 7 taxonomy_breadcrumb.install \taxonomy_breadcrumb_update_6001()

File

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

Code

function taxonomy_breadcrumb_update_6001() {
  $ret = array();

  // Ensure this module's weight is larger than the core taxonomy module.
  // This allows for this module's menu callback for taxonomy/term to get called
  // instead of the core taxonomy/term callback.
  $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);
  return $ret;
}