summaryrefslogtreecommitdiff
path: root/kolab.org/www/drupal-7.26/profiles/minimal
diff options
context:
space:
mode:
authorTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
committerTorsten Grote <grote@kolabsys.com>2014-01-29 15:00:00 (GMT)
commitd9e4a0f1b5f45b2e3fed0908a69dad264d40b15b (patch)
tree76d774e7d2ce4ba7c0754c590a6b730b6f6ceed9 /kolab.org/www/drupal-7.26/profiles/minimal
parent5145fb6b6b03f545d7b82db89850dac1b3b49d78 (diff)
downloadkolab.org-www-d9e4a0f1b5f45b2e3fed0908a69dad264d40b15b.tar.gz
add new drupal version
Diffstat (limited to 'kolab.org/www/drupal-7.26/profiles/minimal')
-rw-r--r--kolab.org/www/drupal-7.26/profiles/minimal/minimal.info12
-rw-r--r--kolab.org/www/drupal-7.26/profiles/minimal/minimal.install81
-rw-r--r--kolab.org/www/drupal-7.26/profiles/minimal/minimal.profile15
-rw-r--r--kolab.org/www/drupal-7.26/profiles/minimal/translations/README.txt3
4 files changed, 111 insertions, 0 deletions
diff --git a/kolab.org/www/drupal-7.26/profiles/minimal/minimal.info b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.info
new file mode 100644
index 0000000..3055140
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.info
@@ -0,0 +1,12 @@
+name = Minimal
+description = Start with only a few modules enabled.
+version = VERSION
+core = 7.x
+dependencies[] = block
+dependencies[] = dblog
+
+; Information added by Drupal.org packaging script on 2014-01-15
+version = "7.26"
+project = "drupal"
+datestamp = "1389815930"
+
diff --git a/kolab.org/www/drupal-7.26/profiles/minimal/minimal.install b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.install
new file mode 100644
index 0000000..9cf4fa2
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.install
@@ -0,0 +1,81 @@
+<?php
+/**
+ * @file
+ * Install, update and uninstall functions for the minimal installation profile.
+ */
+
+/**
+ * Implements hook_install().
+ *
+ * Performs actions to set up the site for this profile.
+ *
+ * @see system_install()
+ */
+function minimal_install() {
+ // Enable some standard blocks.
+ $default_theme = variable_get('theme_default', 'bartik');
+ $values = array(
+ array(
+ 'module' => 'system',
+ 'delta' => 'main',
+ 'theme' => $default_theme,
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'content',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'user',
+ 'delta' => 'login',
+ 'theme' => $default_theme,
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'navigation',
+ 'theme' => $default_theme,
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'management',
+ 'theme' => $default_theme,
+ 'status' => 1,
+ 'weight' => 1,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'help',
+ 'theme' => $default_theme,
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'help',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ );
+ $query = db_insert('block')->fields(array('module', 'delta', 'theme', 'status', 'weight', 'region', 'pages', 'cache'));
+ foreach ($values as $record) {
+ $query->values($record);
+ }
+ $query->execute();
+
+ // 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'));
+}
diff --git a/kolab.org/www/drupal-7.26/profiles/minimal/minimal.profile b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.profile
new file mode 100644
index 0000000..fe6da8c
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/profiles/minimal/minimal.profile
@@ -0,0 +1,15 @@
+<?php
+/**
+ * @file
+ * Enables modules and site configuration for a minimal site installation.
+ */
+
+/**
+ * Implements hook_form_FORM_ID_alter() for install_configure_form().
+ *
+ * Allows the profile to alter the site configuration form.
+ */
+function minimal_form_install_configure_form_alter(&$form, $form_state) {
+ // Pre-populate the site name with the server name.
+ $form['site_information']['site_name']['#default_value'] = $_SERVER['SERVER_NAME'];
+}
diff --git a/kolab.org/www/drupal-7.26/profiles/minimal/translations/README.txt b/kolab.org/www/drupal-7.26/profiles/minimal/translations/README.txt
new file mode 100644
index 0000000..a0afa51
--- /dev/null
+++ b/kolab.org/www/drupal-7.26/profiles/minimal/translations/README.txt
@@ -0,0 +1,3 @@
+
+This directory should be used to place downloaded translations
+for installing Drupal core.