-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdsgf_profile.profile
51 lines (46 loc) · 1.41 KB
/
dsgf_profile.profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* @file
* Enables modules and site configuration for a clone of `drupalsgf.org`
*/
/**
* Implements hook_form_alter().
*/
function dsgf_profile_form_alter(&$form, $form_state) {
switch ($form) {
case 'install_configure_form':
// Default settings
$form['site_information']['site_name']['#default_value'] = 'Drupal SGF';
$form['admin_account']['account']['name']['#default_value'] = 'admin';
$form['admin_account']['account']['mail']['#default_value'] = 'info@drupalsgf.org';
$form['server_settings']['site_default_country']['#default_value'] = 'US';
}
}
/**
* Implements hook_image_default_styles().
*/
function dsgf_profile_image_default_styles() {
$styles = array();
// Event Snapshot
$styles['event_snapshot'] = array(
'name' => 'event_snapshot',
'effects' => array(
1 => array(
'label' => t('Scale and crop'),
'help' => t('Scale and crop will maintain the aspect ratio of the original image.'),
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => '450',
'height' => '285',
),
'weight' => 1,
),
),
);
return $styles;
}