You are here

function tac_lite_update_1 in Taxonomy Access Control Lite 6

Same name and namespace in other branches
  1. 5 tac_lite.install \tac_lite_update_1()
  2. 7 tac_lite.install \tac_lite_update_1()

Ensure that tac_lite hooks are invoked after taxonomy module hooks.

File

./tac_lite.install, line 24
Installation functions for tac_lite.

Code

function tac_lite_update_1() {
  $taxonomy_weight = db_result(db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'"));
  $ret[] = update_sql("UPDATE {system} SET weight = " . ($taxonomy_weight + 9) . " WHERE name = 'tac_lite'");
  return $ret;
}