You are here

function scheduler_access_test_install in Scheduler 8

Same name and namespace in other branches
  1. 2.x tests/modules/scheduler_access_test/scheduler_access_test.install \scheduler_access_test_install()

Implements hook_install().

File

tests/modules/scheduler_access_test/scheduler_access_test.install, line 11
Installation file for Scheduler Access Test module.

Code

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);
  }
}