moodle-block_mytreestudyplan/settings.php

33 lines
950 B
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')
));
// Add the default levels page
$external = new admin_externalpage(
'block_gradelevel_default_levels',
get_string('cfgpage_globallevels', 'block_gradelevel'),
$CFG->wwwroot . '/blocks/gradelevel/globallevels.php'
);
$ADMIN->add("block_gradelevel", $settings);
$ADMIN->add("block_gradelevel", $external);
$settings = null;