moodle-block_mytreestudyplan/settings.php
pmk fa285134cb Finished level management
On assigning the block to a course, a skill needs to be selected in the config,
instead of creating a new skill by default
2018-09-23 22:06:52 +02:00

40 lines
1.1 KiB
PHP

<?php
$ADMIN->add('blocksettings', new admin_category('block_gradelevel', get_string('cfgpage_generic', 'block_gradelevel')));
$settings->add(new admin_setting_configcheckbox(
'gradelevel/showtitle',
get_string('labelshowtitle', 'block_gradelevel'),
get_string('descshowtitle', 'block_gradelevel'),
true
));
$settings->add(new admin_setting_configtext(
'gradelevel/blocktitle',
get_string('labeltitle', 'block_gradelevel'),
get_string('desctitle', 'block_gradelevel'),
get_string('title', 'block_gradelevel')
));
$ADMIN->add("block_gradelevel", $settings);
// Add the default levels page
$ADMIN->add("block_gradelevel", new admin_externalpage(
'block_gradelevel_default_levels',
get_string('cfgpage_globallevels', 'block_gradelevel'),
$CFG->wwwroot . '/blocks/gradelevel/cfg_globallevels.php'
)
);
// Add the skill configpage
$ADMIN->add("block_gradelevel", new admin_externalpage(
'block_gradelevel_config_skills',
get_string('cfgpage_skills', 'block_gradelevel'),
$CFG->wwwroot . '/blocks/gradelevel/cfg_skills.php'
)
);
$settings = null;