]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-11951 - Need a link to the Front Page course question bank in the admin tree...
authortjhunt <tjhunt>
Mon, 29 Oct 2007 16:54:35 +0000 (16:54 +0000)
committertjhunt <tjhunt>
Mon, 29 Oct 2007 16:54:35 +0000 (16:54 +0000)
admin/settings/frontpage.php
lang/en_utf8/admin.php

index 3ec40b0962be987057c891ebf356689d4174a5c3..c88928c9b8e2e056495191914180737dd0f2f2e6 100644 (file)
@@ -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.'&amp;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));
     }
 }
index fd285397f7baec1cd0e87120a1f1d841fe4244c4..dd294fb0673b0c7afee6abba481c592639dd1b0c 100644 (file)
@@ -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';