Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update the installation profile with new functions for setting themes…

… and locales
  • Loading branch information...
commit 938dc80bfbf92ff79d9c6ab36faa871360fb3fcc 1 parent 3f29c3e
Mike Wink authored
View
6 README.md
@@ -7,14 +7,14 @@ related modules and basic settings.
Download the make file using wget (or curl):
```bash
-wget https://raw.github.com/mikewink/drupal7-profile-dev/master/dev.make
+wget https://raw.github.com/mikewink/drupal7-profile-dev/master/distro.make
```
You can install D7 using the dev.make file in the profile using
Drush and Drush Make like so:
```bash
-$ drush make dev.make <target directory>
+$ drush make distro.make <target directory>
```
where "target directory" is a directory that will be created by drush
@@ -22,7 +22,7 @@ if it not exists. If you want to install D7 into the current
directory just use:
```bash
-$ drush make dev.make
+$ drush make distro.make
```
and Drush will ask you to confirm.
View
2  dev.info
@@ -1,5 +1,5 @@
name = Development
-description = D7 development profile.
+description = D7 development installation profile.
core = 7.x
; Core
View
21 dev.install
@@ -89,6 +89,8 @@ function dev_install() {
// [admin/config/regional/language]
if(module_exists('locale')) {
// Add German to the active languages
+
+ /* deprecated
db_insert('languages')
->fields(
array(
@@ -104,6 +106,16 @@ function dev_install() {
'weight' => -2,
'javascript' => ''))
->execute();
+ */
+
+ // function deprecated in D8: http://drupal.org/node/1297712
+ $langcode = 'de';
+ $name = 'German';
+ $native = 'Deutsch';
+ $direction = 0;
+ $domain = '';
+ $prefix = 'de';
+ locale_add_language($langcode, $name, $native, $direction, $domain, $prefix);
}
// @TODO
@@ -124,16 +136,25 @@ function dev_install() {
// Activate and set stark as default theme.
// [admin/appearance/list]
+
+ /* deprecated
db_update('system')
->fields(array('status' => 1))
->condition('type', 'theme')
->condition('name', 'stark')
->execute();
+ */
+
+ $theme_list_enable = array('stark');
+ theme_enable($theme_list_enable);
variable_set('theme_default', 'stark');
variable_set('admin_theme', 'seven');
variable_set('node_admin_theme', '1');
+ $theme_list_disable = array('bartik');
+ theme_disable($theme_list_disable);
+
// Regional settings
// [admin/config/regional/settings]
variable_set('date_first_day', '1'); // Monday
View
12 dev.make
@@ -13,18 +13,6 @@ core = 7.x
; API version
api = 2
-; Head from git
-projects[drupal][download][type] = git
-projects[drupal][download][url] = http://git.drupal.org/project/drupal.git
-projects[drupal][download][tag] = 7.9
-
-
-; Profiles
-projects[dev][type] = profile
-projects[dev][version] = 1.x-dev
-projects[dev][download][type] = git
-projects[dev][download][url] = https://mikewink@github.com/mikewink/drupal7-profile-dev.git
-
; Contrib
; Development
View
2  dev.profile
@@ -10,7 +10,7 @@ function dev_form_install_configure_form_alter(&$form, $form_state) {
define("DEV_SYSTEM_USER_EMAIL", variable_get('site_mail', 'foo@bar.baz'));
// Prepopulate the Configure Site task with default values
- $form['site_information']['site_name']['#default_value'] = st('Drupal @version Development Workbench | @date', array('@version' => VERSION, '@date' => date('mdY', time())));
+ $form['site_information']['site_name']['#default_value'] = st('D7 Dev Workbench | @date', array('@version' => VERSION, '@date' => date('mdY', time())));
$form['site_information']['site_mail']['#default_value'] = DEV_SYSTEM_USER_EMAIL;
$form['admin_account']['account']['name']['#default_value'] = "admin";
View
2  distro.make
@@ -23,4 +23,4 @@ projects[drupal][download][tag] = 7.9
projects[dev][type] = profile
projects[dev][version] = 1.x-dev
projects[dev][download][type] = git
-projects[dev][download][url] = https://mikewink@github.com/mikewink/drupal7-profile-dev.git
+projects[dev][download][url] = https://mikewink@github.com/mikewink/drupal7-profile-dev.git
Please sign in to comment.
Something went wrong with that request. Please try again.