Commit b3cf0681 authored by catch's avatar catch
Browse files

Issue #375397 by sun, Xano, Rob Loach: Make Node module optional.

parent 25043d96
......@@ -2,6 +2,7 @@ name = Minimal
description = Start with only a few modules enabled.
version = VERSION
core = 8.x
dependencies[] = node
dependencies[] = block
dependencies[] = dblog
files[] = minimal.profile
......@@ -72,6 +72,9 @@ function minimal_install() {
}
$query->execute();
// Set front page to "node".
variable_set('site_frontpage', 'node');
// Allow visitor account creation, but with administrative approval.
variable_set('user_register', USER_REGISTER_VISITORS_ADMINISTRATIVE_APPROVAL);
......
......@@ -2,6 +2,7 @@ name = Standard
description = Install with commonly used features pre-configured.
version = VERSION
core = 8.x
dependencies[] = node
dependencies[] = block
dependencies[] = color
dependencies[] = comment
......
......@@ -199,6 +199,9 @@ function standard_install() {
}
$query->execute();
// Set front page to "node".
variable_set('site_frontpage', 'node');
// Insert default pre-defined node types into the database. For a complete
// list of available node type attributes, refer to the node type API
// documentation at: http://api.drupal.org/api/HEAD/function/hook_node_info.
......
......@@ -8,8 +8,4 @@
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'));
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment