From 60ff0c543ad4a05925f3c7726dc5afcae3bdf6f5 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Mon, 29 Oct 2007 16:54:35 +0000 Subject: [PATCH] MDL-11951 - Need a link to the Front Page course question bank in the admin tree. Merged from MOODLE_19_STABLE. --- admin/settings/frontpage.php | 10 ++++++++++ lang/en_utf8/admin.php | 1 + 2 files changed, 11 insertions(+) diff --git a/admin/settings/frontpage.php b/admin/settings/frontpage.php index 3ec40b0962..c88928c9b8 100644 --- a/admin/settings/frontpage.php +++ b/admin/settings/frontpage.php @@ -52,6 +52,16 @@ if (get_site()) { //do not use during installation $ADMIN->add('frontpage', new admin_externalpage('frontpagerestore', get_string('frontpagerestore', 'admin'), $CFG->wwwroot.'/files/index.php?id='.SITEID.'&wdir=/backupdata', 'moodle/site:restore', false, $frontpagecontext)); + $questioncapabilites = array( + 'moodle/question:add', + 'moodle/question:editmine', + 'moodle/question:editall', + 'moodle/question:viewmine', + 'moodle/question:viewall', + 'moodle/question:movemine', + 'moodle/question:moveall'); + $ADMIN->add('frontpage', new admin_externalpage('frontpagequestions', get_string('frontpagequestions', 'admin'), $CFG->wwwroot.'/question/edit.php?courseid='.SITEID, $questioncapabilites, false, $frontpagecontext)); + $ADMIN->add('frontpage', new admin_externalpage('sitefiles', get_string('sitefiles'), $CFG->wwwroot . '/files/index.php?id=' . SITEID, 'moodle/course:managefiles', false, $frontpagecontext)); } } diff --git a/lang/en_utf8/admin.php b/lang/en_utf8/admin.php index fd285397f7..dd294fb067 100644 --- a/lang/en_utf8/admin.php +++ b/lang/en_utf8/admin.php @@ -323,6 +323,7 @@ $string['frontpage'] = 'Front Page'; $string['frontpagebackup'] = 'Front Page backup'; $string['frontpagedefaultrole'] = 'Default frontpage role'; $string['frontpageloggedin'] = 'Front page items when logged in'; +$string['frontpagequestions'] = 'Front Page questions'; $string['frontpagerestore'] = 'Front Page restore'; $string['frontpageroles'] = 'Front Page roles'; $string['frontpagesettings'] = 'Front Page settings'; -- 2.39.5