summaryrefslogtreecommitdiff
path: root/profiles/expert/expert.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-21 07:50:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-21 07:50:08 +0000
commit716293e0fbf1155b8e78c4bd2762c98275b8e6cb (patch)
treea8dd7691cd035f407268e41969ffbb033871bc36 /profiles/expert/expert.install
parentd151ea91004abd0c771dfeea380ff4fef0fbf248 (diff)
downloadbrdo-716293e0fbf1155b8e78c4bd2762c98275b8e6cb.tar.gz
brdo-716293e0fbf1155b8e78c4bd2762c98275b8e6cb.tar.bz2
#509398 by adrian: Turned install profiles into modules with full access to the Drupal API. Almost all WTFs/minute now removed from install profiles. Woohoo! :D
Diffstat (limited to 'profiles/expert/expert.install')
-rw-r--r--profiles/expert/expert.install71
1 files changed, 71 insertions, 0 deletions
diff --git a/profiles/expert/expert.install b/profiles/expert/expert.install
new file mode 100644
index 000000000..bcb6cfff8
--- /dev/null
+++ b/profiles/expert/expert.install
@@ -0,0 +1,71 @@
+<?php
+// $Id$
+
+/**
+ * Implement hook_install().
+ *
+ * Perform actions to set up the site for this profile.
+ */
+function expert_install() {
+
+ // Enable some standard blocks.
+ $values = array(
+ array(
+ 'module' => 'system',
+ 'delta' => 'main',
+ 'theme' => 'garland',
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'content',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'user',
+ 'delta' => 'login',
+ 'theme' => 'garland',
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'navigation',
+ 'theme' => 'garland',
+ 'status' => 1,
+ 'weight' => 0,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'management',
+ 'theme' => 'garland',
+ 'status' => 1,
+ 'weight' => 1,
+ 'region' => 'sidebar_first',
+ 'pages' => '',
+ 'cache' => -1,
+ ),
+ array(
+ 'module' => 'system',
+ 'delta' => 'help',
+ 'theme' => 'garland',
+ '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();
+}
+
+