-
Notifications
You must be signed in to change notification settings - Fork 0
/
os2web_meetings_agman.module
48 lines (44 loc) · 1.96 KB
/
os2web_meetings_agman.module
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
<?php
/**
* @file
* Primary module hooks for os2web_meetings module.
*/
use Drupal\Core\Form\FormStateInterface;
use Drupal\os2web_meetings\Form\SettingsForm;
/**
* Implements hook_form_alter().
*/
function os2web_meetings_agman_form_os2web_meetings_settings_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['agman_meetings_import_details'] = [
'#type' => 'details',
'#title' => t('AGMAN Import settings'),
];
$form['agman_meetings_import_details']['agman_meetings_manifest_path'] = [
'#type' => 'textfield',
'#title' => t('AGMAN Meetings manifests path'),
'#description' => t('Example: public://agman'),
'#default_value' => \Drupal::config(SettingsForm::$configName)
->get('agman_meetings_manifest_path'),
];
$form['agman_meetings_import_details']['agman_meetings_import_closed_bpa_titles'] = [
'#type' => 'textfield',
'#title' => t('Bullet point attachments titles, whose will be imported in closed bullet point'),
'#description' => t('Comma-separeted list of bullet point attachments titles, whose will be imported in closed bullet point. For example "indstilling,beslutning"'),
'#default_value' => \Drupal::config(SettingsForm::$configName)
->get('agman_meetings_import_closed_bpa_titles')
];
$form['agman_meetings_import_details']['agman_meetings_import_closed_bilags'] = [
'#type' => 'checkbox',
'#title' => t('Import closed bilags'),
'#description' => t('This decides if closed bilags will be imported'),
'#default_value' => \Drupal::config(SettingsForm::$configName)
->get('agman_meetings_import_closed_bilags')
];
$form['agman_meetings_import_details']['agman_meetings_import_empty_bpa_title'] = [
'#type' => 'textfield',
'#title' => t('Empty attachment title'),
'#description' => t('If attachment title is empty, this value will be used'),
'#default_value' => \Drupal::config(SettingsForm::$configName)
->get('agman_meetings_import_empty_bpa_title')
];
}