scheduler_access_test.install in Scheduler 8
Same filename and directory in other branches
Installation file for Scheduler Access Test module.
File
tests/modules/scheduler_access_test/scheduler_access_test.installView source
<?php
/**
* @file
* Installation file for Scheduler Access Test module.
*/
/**
* Implements hook_install().
*/
function scheduler_access_test_install() {
// The function node_access_needs_rebuild() does not exist at install-time
// when testing via run-tests.sh, hence protect this from failure. Also we
// cannot call node_access_rebuild() directly as the node type does not exist
// at this point, either during run-tests.sh or via simpletest.
if (function_exists('node_access_needs_rebuild')) {
node_access_needs_rebuild(TRUE);
}
}
/**
* Implements hook_uninstall().
*/
function scheduler_access_test_uninstall() {
node_access_needs_rebuild(TRUE);
}
Functions
Name | Description |
---|---|
scheduler_access_test_install | Implements hook_install(). |
scheduler_access_test_uninstall | Implements hook_uninstall(). |