function tac_lite_update_1 in Taxonomy Access Control Lite 7
Same name and namespace in other branches
- 5 tac_lite.install \tac_lite_update_1()
- 6 tac_lite.install \tac_lite_update_1()
Ensure that tac_lite hooks are invoked after taxonomy module hooks.
File
- ./
tac_lite.install, line 44 - Installation functions for tac_lite. TODO: All updates need proper error handling and responses
Code
function tac_lite_update_1() {
$taxonomy_weight = db_query("SELECT weight FROM {system} WHERE name = 'taxonomy'")
->fetchField();
$num_updated = db_update('system')
->fields(array(
'weight' => $taxonomy_weight + 9,
))
->condition('name', 'tac_lite')
->execute();
}