-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebships.profile
executable file
·36 lines (31 loc) · 1.11 KB
/
webships.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
<?php
/**
* @file
* Site configuration for Webships.org site installation.
*/
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_FORM_ID_alter() for install_configure_form().
*
* Allows the profile to alter the site configuration form.
*/
function webships_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
$form['site_information']['site_name']['#default_value'] = t('Webships.org App Store');
$form['site_information']['site_mail']['#default_value'] = '[email protected]';
$form['admin_account']['account']['name']['#default_value'] = 'webmaster';
$form['admin_account']['account']['mail']['#default_value'] = '[email protected]';
}
/**
* Implements hook_install_tasks_alter().
*/
function webships_install_tasks_alter(&$tasks, $install_state) {
unset($tasks['install_select_language']);
unset($tasks['install_download_translation']);
}
/**
* Implements hook_preprocess_install_page().
*/
function webships_preprocess_install_page(&$variables) {
// Webships has custom styling for the install page.
$variables['#attached']['library'][] = 'webships/install-page';
}