diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-08-22 15:31:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-08-22 15:31:18 +0000 |
commit | 153ef8bd7b79fa4063a3994cd653721249e9c465 (patch) | |
tree | c5eba601e3aab1b62086a7904ed070e26683d5c5 /profiles/testing/testing.install | |
parent | 260dbda9708a68e83b7ab84e1d947abae123a9d1 (diff) | |
download | brdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.gz brdo-153ef8bd7b79fa4063a3994cd653721249e9c465.tar.bz2 |
- Patch #323477 by justinrandell, boombatower, tstoeckler, Damien Tournoud: increase simpletest speed by running on a simplified profile.
Diffstat (limited to 'profiles/testing/testing.install')
-rw-r--r-- | profiles/testing/testing.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/profiles/testing/testing.install b/profiles/testing/testing.install new file mode 100644 index 000000000..74a1fff00 --- /dev/null +++ b/profiles/testing/testing.install @@ -0,0 +1,17 @@ +<?php + +/** + * Implements hook_install(). + * + * Perform actions to set up the site for this profile. + */ +function testing_install() { + + // Allow visitor account creation, but with administrative approval. + variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL); + + // Enable default permissions for system roles. + user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content')); + user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content')); +} + |