diff --git a/README.md b/README.md index 7e367a628fdd372451da9cec884cf9128fb076c3..6dfc5d093a6dd601db31ecce3925514a97ed875b 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 0000000000000000000000000000000000000000..8f2663014019eafd411b46b07493cff98e69bc4c --- /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 0000000000000000000000000000000000000000..2473ef730754b23223d1a82829043556c1239b87 --- /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 0000000000000000000000000000000000000000..b066ebdfdce11f980f7efaea60e4ca53cc733bc3 --- /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 0000000000000000000000000000000000000000..d408d7ac0698ff26f8973dba8e208ce920afa530 --- /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'; +}