From 36fccd9aa65e2a4aa316985c2e6c035bb1fac912 Mon Sep 17 00:00:00 2001
From: thewilkybarkid <chriswilkinson84@gmail.com>
Date: Thu, 8 Aug 2013 14:14:51 +0100
Subject: [PATCH] Start full profile

---
 README.md         | 33 ++++++++++++++++++++++++++++++---
 cambridge.info    | 38 ++++++++++++++++++++++++++++++++++++++
 cambridge.install | 19 +++++++++++++++++++
 cambridge.make    |  4 ++++
 cambridge.profile | 16 ++++++++++++++++
 5 files changed, 107 insertions(+), 3 deletions(-)
 create mode 100644 cambridge.info
 create mode 100644 cambridge.install
 create mode 100644 cambridge.make
 create mode 100644 cambridge.profile

diff --git a/README.md b/README.md
index 7e367a6..6dfc5d0 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,33 @@
-University of Cambridge Drupal install profile
-==============================================
+University of Cambridge Drupal install profiles
+===============================================
 
-To build the profile execute:
+There are two different install profiles provided:
+
+- University of Cambridge
+- University of Cambridge (lite)
+
+Lite profile
+------------
+
+In the lite profile the University of Cambridge theme is enabled and a few standard pieces are set up (eg images styles, front-page carousel).
+
+This profile is useful if you would like full control over how your Drupal site is put together.
+
+To build the lite profile execute:
 
     drush make --no-core --contrib-destination=. cambridge_lite.make .
+
+And remove the `cambridge.info`, `cambridge.install`, `cambridge.make` and `cambridge.profile` files.
+
+Full profile
+------------
+
+The full profile contains all the features of the lite profile, plus additions that helps you to quickly get going (eg extra modules are enabled and configured).
+
+This profile is useful if you don't mind following established patterns when putting your Drupal site together.
+
+To build the full profile execute:
+
+    drush make --no-core --contrib-destination=. cambridge.make .
+
+And remove the `cambridge_lite.info` and `cambridge_lite.profile` files.
diff --git a/cambridge.info b/cambridge.info
new file mode 100644
index 0000000..8f26630
--- /dev/null
+++ b/cambridge.info
@@ -0,0 +1,38 @@
+name = University of Cambridge
+description = Install the standard University of Cambridge features.
+version = 7.x-1.0-dev
+core = 7.x
+
+; core
+
+dependencies[] = block
+dependencies[] = contextual
+dependencies[] = dashboard
+dependencies[] = dblog
+dependencies[] = field_ui
+dependencies[] = file
+dependencies[] = help
+dependencies[] = image
+dependencies[] = list
+dependencies[] = menu
+dependencies[] = number
+dependencies[] = options
+dependencies[] = overlay
+dependencies[] = path
+dependencies[] = rdf
+dependencies[] = search
+dependencies[] = shortcut
+dependencies[] = taxonomy
+dependencies[] = toolbar
+
+; theme
+
+dependencies[] = menu_block
+
+; contrib
+
+dependencies[] = link
+dependencies[] = php
+dependencies[] = raven
+dependencies[] = views
+dependencies[] = views_ui
diff --git a/cambridge.install b/cambridge.install
new file mode 100644
index 0000000..2473ef7
--- /dev/null
+++ b/cambridge.install
@@ -0,0 +1,19 @@
+<?php
+
+/**
+ * @file
+ * Install, update and uninstall functions for the University of Cambridge installation profile.
+ */
+
+/**
+ * Implements hook_install().
+ *
+ * Perform actions to set up the site for this profile.
+ *
+ * @see system_install()
+ */
+function cambridge_install() {
+  require_once 'cambridge_lite.install';
+
+  cambridge_lite_install();
+}
diff --git a/cambridge.make b/cambridge.make
new file mode 100644
index 0000000..b066ebd
--- /dev/null
+++ b/cambridge.make
@@ -0,0 +1,4 @@
+api = 2
+core = 7.x
+
+includes[cambridge_lite] = "cambridge_lite.make"
diff --git a/cambridge.profile b/cambridge.profile
new file mode 100644
index 0000000..d408d7a
--- /dev/null
+++ b/cambridge.profile
@@ -0,0 +1,16 @@
+<?php
+
+/**
+ * @file
+ * Installation profile.
+ */
+
+/**
+ * Implements hook_form_FORM_ID_alter() for install_configure_form().
+ *
+ * Allows the profile to alter the site configuration form.
+ */
+function cambridge_form_install_configure_form_alter(&$form, $form_state) {
+  // Pre-populate the default country with United Kingdom.
+  $form['server_settings']['site_default_country']['#default_value'] = 'GB';
+}
-- 
GitLab