From ef57fdeb1a8676f595f4247a62f0f89a5899af29 Mon Sep 17 00:00:00 2001 From: fjungwirth Date: Mon, 4 Jul 2016 16:48:36 +0200 Subject: [PATCH] hide item grading for shared items for teachers --- lib/item_edit_form.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/item_edit_form.php b/lib/item_edit_form.php index 55abab2..c7de9ce 100644 --- a/lib/item_edit_form.php +++ b/lib/item_edit_form.php @@ -52,6 +52,9 @@ function definition() { $mform->addElement('filemanager', 'file', get_string('file', 'block_exaport'), null, array('subdirs' => 0, 'maxfiles' => 1)); + /* + fjungwirth: hide grading at this stage (meeting LS 4.7.16) + if ($this->_customdata['gradingpermission']) { $mform->addElement('header', 'itemgrading', get_string("itemgrading", "block_exaport")); $itemgrade = $this->_customdata['itemgrade']; @@ -61,6 +64,7 @@ function definition() { $slider = '
'; $mform->addElement('html',$slider); } + */ $this->add_action_buttons(false, get_string('add'));