summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-12 08:36:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-12 08:36:35 +0000
commit6dc5b5449d6c52b433e6b712786c2e49778a363f (patch)
tree66e4926fa3dcc0a33f46f4145ca5b72bf7458943 /profiles
parent065fa60551edddc27a30d04cecb58b30b7ac8e3c (diff)
downloadbrdo-6dc5b5449d6c52b433e6b712786c2e49778a363f.tar.gz
brdo-6dc5b5449d6c52b433e6b712786c2e49778a363f.tar.bz2
- Patch #491456 by quicksketch, drewish, et al: image effects and actions.
Diffstat (limited to 'profiles')
-rw-r--r--profiles/default/default.profile23
1 files changed, 22 insertions, 1 deletions
diff --git a/profiles/default/default.profile b/profiles/default/default.profile
index 52aa21068..256e26062 100644
--- a/profiles/default/default.profile
+++ b/profiles/default/default.profile
@@ -8,7 +8,7 @@
* An array of modules to enable.
*/
function default_profile_modules() {
- return array('block', 'color', 'comment', 'help', 'menu', 'path', 'taxonomy', 'dblog', 'search', 'toolbar');
+ return array('block', 'color', 'comment', 'help', 'image', 'menu', 'path', 'taxonomy', 'dblog', 'search', 'toolbar');
}
/**
@@ -196,6 +196,27 @@ function default_profile_tasks(&$task, $url) {
// Don't display date and author information for page nodes by default.
variable_set('node_submitted_page', FALSE);
+ // Create an image style.
+ $style = array('name' => 'thumbnail');
+ $style = image_style_save($style);
+ $effect = array(
+ 'isid' => $style['isid'],
+ 'name' => 'image_scale_and_crop',
+ 'data' => array('width' => '85', 'height' => '85'),
+ );
+ image_effect_save($effect);
+
+ // Enable user picture support and set the default to a square thumbnail option.
+ variable_set('user_pictures', '1');
+ variable_set('user_picture_dimensions', '1024x1024');
+ variable_set('user_picture_file_size', '800');
+ variable_set('user_picture_style', 'thumbnail');
+
+ $theme_settings = theme_get_settings();
+ $theme_settings['toggle_node_user_picture'] = '1';
+ $theme_settings['toggle_comment_user_picture'] = '1';
+ variable_set('theme_settings', $theme_settings);
+
// Create a default vocabulary named "Tags", enabled for the 'article' content type.
$description = st('Use tags to group articles on similar topics into categories.');
$help = st('Enter a comma-separated list of words.');