2018-11-24 12:34:30 +01:00
|
|
|
<?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'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
2018-09-18 23:25:08 +02:00
|
|
|
$settings = null;
|