Browse Source

mod_form:added checking for MOODLE_INTERNAL.

MOODLE_23_STABLE
Artem Andreev 14 years ago
parent
commit
70cc3fba79
  1. 7
      mod_form.php

7
mod_form.php

@ -1,4 +1,9 @@
<?php <?php
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once ($CFG->dirroot.'/course/moodleform_mod.php'); require_once ($CFG->dirroot.'/course/moodleform_mod.php');
class mod_attforblock_mod_form extends moodleform_mod { class mod_attforblock_mod_form extends moodleform_mod {
@ -21,6 +26,8 @@ class mod_attforblock_mod_form extends moodleform_mod {
$mform->addElement('modgrade', 'grade', get_string('grade')); $mform->addElement('modgrade', 'grade', get_string('grade'));
$mform->setDefault('grade', 100); $mform->setDefault('grade', 100);
//-------------------------------------------------------------------------------
$this->standard_coursemodule_elements(true); $this->standard_coursemodule_elements(true);
//------------------------------------------------------------------------------- //-------------------------------------------------------------------------------

Loading…
Cancel
Save