2009-08-21 07:50:08 +00:00
|
|
|
<?php
|
2012-02-29 21:19:26 +00:00
|
|
|
/**
|
|
|
|
* @file
|
2012-10-05 16:11:15 +00:00
|
|
|
* Install, update and uninstall functions for the minimal installation profile.
|
2012-02-29 21:19:26 +00:00
|
|
|
*/
|
2009-08-21 07:50:08 +00:00
|
|
|
|
|
|
|
/**
|
2009-12-04 16:49:48 +00:00
|
|
|
* Implements hook_install().
|
2009-08-21 07:50:08 +00:00
|
|
|
*
|
2012-02-29 21:19:26 +00:00
|
|
|
* Performs actions to set up the site for this profile.
|
|
|
|
*
|
|
|
|
* @see system_install()
|
2009-08-21 07:50:08 +00:00
|
|
|
*/
|
2010-01-04 23:08:34 +00:00
|
|
|
function minimal_install() {
|
2013-04-17 06:28:24 +00:00
|
|
|
// Disable the user pictures on nodes.
|
2013-09-16 03:58:06 +00:00
|
|
|
\Drupal::config('system.theme.global')->set('features.node_user_picture', FALSE)->save();
|
2011-12-13 03:29:45 +00:00
|
|
|
|
2010-05-27 12:29:39 +00:00
|
|
|
// Allow visitor account creation, but with administrative approval.
|
2013-09-16 03:58:06 +00:00
|
|
|
\Drupal::config('user.settings')->set('register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL)->save();
|
2010-05-27 12:29:39 +00:00
|
|
|
|
2009-08-27 20:25:29 +00:00
|
|
|
// Enable default permissions for system roles.
|
2010-02-06 16:29:35 +00:00
|
|
|
user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content'));
|
2010-02-06 16:30:27 +00:00
|
|
|
user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content'));
|
2009-08-21 07:50:08 +00:00
|
|
|
}
|