]> git.mjollnir.org Git - moodle.git/commitdiff
Adding formal source code conventions
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:42:27 +0000 (17:42 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:42:27 +0000 (17:42 +0000)
mod/workshop/lib.php
mod/workshop/mod_form.php
mod/workshop/settings.php
mod/workshop/version.php

index 9be5f0b531f1a4b8ae8cb41e36a7d78cd824236e..3b7a7b0810455207fcb267429a59cdc7a69ec9b7 100644 (file)
@@ -30,6 +30,7 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+defined('MOODLE_INTERNAL') || die();
 
 /**
  * The internal codes of the anonymity levels
index e4473e6995899500ea51ad2cbc847eff848c85d9..0c18937a69573e90cb4894fc26a18498c971315f 100644 (file)
@@ -28,6 +28,8 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+defined('MOODLE_INTERNAL') || die();
+
 require_once($CFG->dirroot.'/course/moodleform_mod.php');
 
 class mod_workshop_mod_form extends moodleform_mod {
index e6672b35647cbb9eebea475ead598c53172174f0..24675bf6a71d5f09a145f2a026440ca8b51853eb 100644 (file)
@@ -1,4 +1,32 @@
-<?php  //$Id$
+<?php
+
+// This file is part of Moodle - http://moodle.org/
+//
+// Moodle is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// Moodle is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
+
+
+/**
+ * The workshop module configuration variables
+ *
+ * The values defined here are often used as defaults for all module instances.
+ *
+ * @package   mod-workshop
+ * @copyright 2009 David Mudrak <david.mudrak@gmail.com>
+ * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
+ */
+
+defined('MOODLE_INTERNAL') || die();
 
 require_once($CFG->dirroot.'/mod/workshop/lib.php');
 
@@ -46,4 +74,3 @@ $settings->add(new admin_setting_configselect('workshop/assessmentcomps', get_st
 $settings->add(new admin_setting_configcheckbox('assignment_showrecentsubmissions', get_string('showrecentsubmissions', 'assignment'),
                    get_string('configshowrecentsubmissions', 'assignment'), 1));
 */
-?>
index d3c11ccbefc6a123bfb7728096f18f7a9e114b07..1dde8346217f08b1b38fdaae6b2544d678dc7483 100644 (file)
@@ -27,6 +27,8 @@
  * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  */
 
+defined('MOODLE_INTERNAL') || die();
+
 $module->version  = 2009052100;
 $module->requires = 2009050619;  // Requires this Moodle version
 $module->cron     = 60;