acb.install in Access Control Bridge 8
Same filename and directory in other branches
Installation file containing install hooks.
File
acb.installView source
<?php
/**
* @file Installation file containing install hooks.
*/
/**
* Implements hook_enable().
*/
function acb_enable() {
// Ask for rebuilding node permissions.
node_access_needs_rebuild(TRUE);
}
/**
* Implements hook_disable().
*/
function acb_disable() {
// Ask for rebuilding node permissions.
node_access_needs_rebuild(TRUE);
}
/**
* Implements hook_install().
*/
function acb_install() {
// Set module weight to ensure its hooks are called last.
// @TODO: test.
module_set_weight('acb', 500);
}
Functions
Name | Description |
---|---|
acb_disable | Implements hook_disable(). |
acb_enable | Implements hook_enable(). |
acb_install | Implements hook_install(). |