Projet

Général

Profil

Paste
Télécharger (611 octets) Statistiques
| Branche: | Révision:

root / drupal7 / profiles / testing / testing.install @ master

1
<?php
2
/**
3
 * @file
4
 * Install, update and uninstall functions for the testing profile.
5
 */
6

    
7
/**
8
 * Implements hook_install().
9
 *
10
 * Perform actions to set up the site for this profile.
11
 *
12
 * @see system_install()
13
 */
14
function testing_install() {
15
  // Allow visitor account creation, but with administrative approval.
16
  variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
17

    
18
  // Enable default permissions for system roles.
19
  user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
20
  user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
21
}