-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlabdoo.profile
More file actions
45 lines (40 loc) · 1.16 KB
/
labdoo.profile
File metadata and controls
45 lines (40 loc) · 1.16 KB
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
<?php
/**
* @file
* Installation steps for the profile labdoo.
*/
/**
* Implements hook_form_FORM_ID_alter().
*
* Allows the profile to alter the site configuration form.
*/
function labdoo_form_install_configure_form_alter(&$form, $form_state) {
// Pre-populate the site name with the server name.
$form['site_information']['site_name']['#default_value'] = 'Labdoo';
}
/**
* Implements hook_install_tasks().
*/
function labdoo_install_tasks($install_state) {
// Add our custom CSS file for the installation process
drupal_add_css(drupal_get_path('profile', 'labdoo') . '/labdoo.css');
module_load_include('inc', 'phpmailer', 'phpmailer.admin');
//module_load_include('inc', 'labdoo', 'labdoo.admin');
$tasks = array(
'labdoo_mail_config' => array(
'display_name' => st('Mail Settings'),
'type' => 'form',
'run' => INSTALL_TASK_RUN_IF_NOT_COMPLETED,
'function' => 'phpmailer_settings_form',
),
/*
'labdoo_config' => array(
'display_name' => st('Labdoo Settings'),
'type' => 'form',
'run' => INSTALL_TASK_RUN_IF_NOT_COMPLETED,
'function' => 'labdoo_config',
),
*/
);
return $tasks;
}