testing.install 611 B

123456789101112131415161718192021
  1. <?php
  2. /**
  3. * @file
  4. * Install, update and uninstall functions for the testing profile.
  5. */
  6. /**
  7. * Implements hook_install().
  8. *
  9. * Perform actions to set up the site for this profile.
  10. *
  11. * @see system_install()
  12. */
  13. function testing_install() {
  14. // Allow visitor account creation, but with administrative approval.
  15. variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
  16. // Enable default permissions for system roles.
  17. user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
  18. user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
  19. }