Revision: 4330
Author:   seba.wagner
Date:     Fri Sep 30 09:09:19 2011
Log:      [No log message]
http://code.google.com/p/openmeetings/source/detail?r=4330

Modified:
 /trunk/plugins/moodle_plugin/db/upgrade.php
 /trunk/plugins/moodle_plugin/mod_form.php
 /trunk/plugins/moodle_plugin/version.php

=======================================
--- /trunk/plugins/moodle_plugin/db/upgrade.php Sun Feb  8 10:33:59 2009
+++ /trunk/plugins/moodle_plugin/db/upgrade.php Fri Sep 30 09:09:19 2011
@@ -8,5 +8,20 @@

     return $result;
 }
+
+if ($oldversion < 20111001) {
+
+       // Define field allow_recording to be added to openmeetings
+        $table = new xmldb_table('openmeetings');
+ $field = new xmldb_field('allow_recording', XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, '1', 'room_recording_id');
+
+        // Conditionally launch add field allow_recording
+        if (!$dbman->field_exists($table, $field)) {
+            $dbman->add_field($table, $field);
+        }
+
+       // openmeetings savepoint reached
+       upgrade_mod_savepoint(true, 20111001, 'openmeetings');
+}

 ?>
=======================================
--- /trunk/plugins/moodle_plugin/mod_form.php   Fri Sep 30 08:38:05 2011
+++ /trunk/plugins/moodle_plugin/mod_form.php   Fri Sep 30 09:09:19 2011
@@ -63,7 +63,7 @@
                /// Adding the "Is Moderated Room" field
$mform->addElement('select', 'is_moderated_room', get_string('Wait_for_teacher', 'openmeetings'), array('1'=> get_string('Moderation_TYPE_1', 'openmeetings'),'2' => get_string('Moderation_TYPE_2', 'openmeetings'),'3' => get_string('Moderation_TYPE_3', 'openmeetings')));

- $mform->addElement('select', 'allow_recording', get_string('Allow_Recording', 'openmeetings'), array('1'=> get_string('Recording_TYPE_2', 'openmeetings'),'2' => get_string('Recording_TYPE_2', 'openmeetings'))); + $mform->addElement('select', 'allow_recording', get_string('Allow_Recording', 'openmeetings'), array('1'=> get_string('Recording_TYPE_1', 'openmeetings'),'2' => get_string('Recording_TYPE_2', 'openmeetings')));


                /// Adding the "Room Language" field
@@ -111,7 +111,7 @@
//$mform->addElement('format', 'introformat', get_string('format', 'openmeetings'));
                //$this->add_intro_editor(true, get_string('description', 
'mplayer'));

-               $this->add_intro_editor(true);
+               //$this->add_intro_editor(true);

//-------------------------------------------------------------------------------
                // add standard elements, common to all modules
=======================================
--- /trunk/plugins/moodle_plugin/version.php    Sun Feb  8 10:33:59 2009
+++ /trunk/plugins/moodle_plugin/version.php    Fri Sep 30 09:09:19 2011
@@ -1,6 +1,6 @@
 <?php // $Id: version.php,v 1.0 2008/05/12 12:00:00 Sebastian Wagner Exp $

-$module->version  = 2008051200;
+$module->version  = 20111001;
 $module->cron     = 0;

 ?>

--
You received this message because you are subscribed to the Google Groups 
"OpenMeetings developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-dev?hl=en.

Reply via email to