From 70cc3fba796d881048fcbf038c99ab20b2c245e8 Mon Sep 17 00:00:00 2001 From: Artem Andreev Date: Sat, 9 Apr 2011 14:36:21 +0400 Subject: [PATCH] mod_form:added checking for MOODLE_INTERNAL. --- mod_form.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mod_form.php b/mod_form.php index 47549eb..a28c778 100644 --- a/mod_form.php +++ b/mod_form.php @@ -1,4 +1,9 @@ dirroot.'/course/moodleform_mod.php'); class mod_attforblock_mod_form extends moodleform_mod { @@ -20,7 +25,9 @@ class mod_attforblock_mod_form extends moodleform_mod { $mform->addElement('modgrade', 'grade', get_string('grade')); $mform->setDefault('grade', 100); - + +//------------------------------------------------------------------------------- + $this->standard_coursemodule_elements(true); //-------------------------------------------------------------------------------