-
Notifications
You must be signed in to change notification settings - Fork 0
/
theme-settings.php
50 lines (39 loc) · 1.06 KB
/
theme-settings.php
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
* Theme settings.
*/
/**
* Implementation of hook_form_system_theme_settings_alter()
*
* @param $form
* Nested array of form elements that comprise the form.
* @param $form_state
* A keyed array containing the current state of the form.
*/
/* -- Delete this line to enable.
function sha_form_system_theme_settings_alter(&$form, \Drupal\Core\Form\FormStateInterface $form_state, $form_id = NULL) {
// Work-around for a core bug affecting admin themes. See issue #943212.
if (isset($form_id)) {
return;
}
// $build_info = $form_state->getBuildInfo();
// $theme = $build_info['args'][0];
// $form['#validate'][] = 'sha_settings_form_validate';
// $form['#submit'][] = 'sha_settings_form_submit';
}
// */
/**
* Form validation handler for the theme settings form.
*/
/* -- Delete this line to enable.
function sha_settings_form_validate($form, &$form_state) {
}
// */
/**
* Form submit handler for the theme settings form.
*/
/* -- Delete this line to enable.
function sha_settings_form_submit($form, &$form_state) {
}
// */