summaryrefslogtreecommitdiff
path: root/profiles/expert/expert.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 23:08:34 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-04 23:08:34 +0000
commitbb293ccfb5193d2f769af6a8422765784c205536 (patch)
tree2c635efe03fe2056ded63cf11feab571f4b214cf /profiles/expert/expert.install
parent144bda7dbb2ec2a92c3c2b393c563e291b3fd073 (diff)
downloadbrdo-bb293ccfb5193d2f769af6a8422765784c205536.tar.gz
brdo-bb293ccfb5193d2f769af6a8422765784c205536.tar.bz2
#420358 follow-up by Dave Reid: Rename profiles default => standard and expert => minimal, for consistency with labels.
Diffstat (limited to 'profiles/expert/expert.install')
-rw-r--r--profiles/expert/expert.install97
1 files changed, 0 insertions, 97 deletions
diff --git a/profiles/expert/expert.install b/profiles/expert/expert.install
deleted file mode 100644
index 2ffd36465..000000000
--- a/profiles/expert/expert.install
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php
-// $Id$
-
-/**
- * Implements hook_install().
- *
- * Perform actions to set up the site for this profile.
- */
-function expert_install() {
- // Add text formats.
- $plain_text_format = array(
- 'name' => 'Plain text',
- 'weight' => 10,
- 'filters' => array(
- // Escape all HTML.
- 'filter_html_escape' => array(
- 'weight' => 0,
- 'status' => 1,
- ),
- // Line break filter.
- 'filter_autop' => array(
- 'weight' => 1,
- 'status' => 1,
- ),
- ),
- );
- $plain_text_format = (object) $plain_text_format;
- filter_format_save($plain_text_format);
-
- // Set the fallback format to plain text.
- variable_set('filter_fallback_format', $plain_text_format->format);
-
- // 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();
-
- // Enable default permissions for system roles.
- user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content', 'use text format 1'));
- user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content', 'access comments', 'post comments', 'post comments without approval', 'use text format 1'));
-}
-
-