scheduler-8.x-1.x-dev/tests/modules/scheduler_access_test/scheduler_access_test.install

tests/modules/scheduler_access_test/scheduler_access_test.install
<?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);
}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc