function tac_lite_install in Taxonomy Access Control Lite 7
Same name and namespace in other branches
- 8 tac_lite.install \tac_lite_install()
- 5 tac_lite.install \tac_lite_install()
- 6 tac_lite.install \tac_lite_install()
Implementation of hook_install().
Ensure that tac_lite hooks are invoked after taxonomy module hooks.
File
- ./
tac_lite.install, line 14 - Installation functions for tac_lite. TODO: All updates need proper error handling and responses
Code
function tac_lite_install() {
$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();
// Note that it is not necessary to rebuild the node access table here, as
// that will be done when module settings are saved.
}