1 | <?php |
||
2 | /** |
||
3 | * @file |
||
4 | * Add custom theme settings to the ZURB Foundation sub-theme. |
||
5 | */ |
||
6 | |||
7 | use Drupal\Core\Form\FormStateInterface; |
||
8 | |||
9 | /** |
||
10 | * Implements hook_form_FORM_ID_alter(). |
||
11 | * @param $form |
||
12 | * @param \Drupal\Core\Form\FormStateInterface $form_state |
||
13 | */ |
||
14 | function dfs_base_form_system_theme_settings_alter(&$form, FormStateInterface $form_state) { |
||
0 ignored issues
–
show
|
|||
15 | $form['theme_ui']['dfs_base_callout_auto_close'] = array( |
||
16 | '#type' => 'checkbox', |
||
17 | '#title' => t('Automatically close status messages'), |
||
18 | '#default_value' => theme_get_setting('dfs_base_callout_auto_close'), |
||
19 | ); |
||
20 | } |
||
21 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.