moodle-block_mytreestudyplan/settings.php

40 lines
1.2 KiB
PHP
Raw Normal View History

<?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;