forked from praxisdigital/moodle-block_sharing_cart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.php
41 lines (37 loc) · 1.22 KB
/
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
<?php
// @codeCoverageIgnoreStart
defined('MOODLE_INTERNAL') || die();
// @codeCoverageIgnoreEnd
/**
* @global admin_root $ADMIN
* @global admin_settingpage $settings
*/
if ($ADMIN->fulltree) {
$settings->add(
new admin_setting_configcheckbox(
'block_sharing_cart/show_sharing_cart_basket',
get_string('settings:show_sharing_cart_basket', 'block_sharing_cart'),
get_string('settings:show_sharing_cart_basket_desc', 'block_sharing_cart'),
1,
)
);
// TODO: Implement the following??
/*
$settings->add(
new \block_sharing_cart\admin_settings\multi_checkbox_q_types(
'block_sharing_cart/workaround_qtypes',
get_string('settings:workaround_qtypes', 'block_sharing_cart'),
get_string('settings:workaround_qtypes_desc', 'block_sharing_cart'),
[]
)
);
*/
$settings->add(
new admin_setting_configcheckbox(
'block_sharing_cart/show_copy_section_in_block',
get_string('settings:show_copy_section_in_block', 'block_sharing_cart'),
get_string('settings:show_copy_section_in_block_desc', 'block_sharing_cart'),
false
)
);
}