]> git.mjollnir.org Git - moodle.git/commitdiff
removed all 'Revert' buttons from forms and removed it altogether from add_action_but...
authorjamiesensei <jamiesensei>
Thu, 28 Dec 2006 16:12:22 +0000 (16:12 +0000)
committerjamiesensei <jamiesensei>
Thu, 28 Dec 2006 16:12:22 +0000 (16:12 +0000)
course/import/activities/import_form.php
course/import/groups/import_form.php
enrol/authorize/enrol_form.php
login/change_password_form.php
login/forgot_password_form.php
login/signup_form.php
mod/forum/post_form.php

index 4a684b9c1834d2fe1005658da139ea6f8bb50f26..3a6d0779f7a7b61a7fd5a673e1798a7a1184886f 100755 (executable)
@@ -17,7 +17,7 @@ class course_import_activities_form_1 extends moodleform {
 
         // buttons
         $submit_string = get_string('usethiscourse');
-        $this->add_action_buttons(false, true, $submit_string);
+        $this->add_action_buttons(false, $submit_string);
 
         $mform->addElement('hidden', 'id');
                $mform->setType('id', PARAM_INT);
@@ -44,7 +44,7 @@ class course_import_activities_form_2 extends moodleform {
                $mform->addElement('text', 'fromcoursesearch', get_string('searchcourses'));
 
         // buttons
-        $this->add_action_buttons(false, true, get_string('searchcourses'));
+        $this->add_action_buttons(false, get_string('searchcourses'));
 
         $mform->addElement('hidden', 'id');
                $mform->setType('id', PARAM_INT);
index 02451f41c634afdd06c55fc1bde247f4685e7707..a6716b6eb645ddba9526a5dccb5042470f68dd7e 100755 (executable)
@@ -26,7 +26,7 @@ class course_import_groups_form extends moodleform {
         $mform->setHelpButton('userfile', array('attachment', get_string('attachment', 'forum'), 'forum'));
 
 
-        $this->add_action_buttons(false, true, $strimportgroups);
+        $this->add_action_buttons(false, $strimportgroups);
 
        }
 
index 3b3c9cc126d79420cbc2637a66cffafd4c50b1b4..67439100942b4bdb9483d7722d0831f01f1513fe 100755 (executable)
@@ -172,7 +172,7 @@ class enrol_authorize_form extends moodleform
         $mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'required', null, 'client');
         $mform->addRule('cczip', get_string('missingzip', 'enrol_authorize'), 'numeric', null, 'client');
 
-        $this->add_action_buttons(false, true, get_string('sendpaymentbutton', 'enrol_authorize'));
+        $this->add_action_buttons(false, get_string('sendpaymentbutton', 'enrol_authorize'));
     }
 
     function validation($data)
index 56cf683ec3b3e6f646952f16cc6dafe5bff93439..db04a154f254f69ce8edb4f6d3acdfb7d05bd526 100644 (file)
@@ -46,9 +46,9 @@ class login_change_password_form extends moodleform {
 
         // buttons
         if (empty($USER->preference['auth_forcepasswordchange'])) {
-            $this->add_action_buttons(true, false);
+            $this->add_action_buttons(true);
         } else {
-            $this->add_action_buttons(false, false);
+            $this->add_action_buttons(false);
         }
     }
 
index f035df54c6a1c5b5300a70c7a6a9ac8b6f649e2c..dad611647fa8e1d538ca98efb4a0017b21df88fb 100644 (file)
@@ -20,7 +20,7 @@ class login_forgot_password_form extends moodleform {
         $mform->addElement('hidden', 'action', 'find');
         $mform->setType('action', PARAM_ALPHA);
 
-        $this->add_action_buttons(true, false, get_string('ok'));
+        $this->add_action_buttons(true, get_string('ok'));
     }
 }
 
index 074428a93b82aaace8a0a356e14f3b9048c9dbd4..40c0cd82c6180cab6824793baeb1b6a4f143dd1d 100644 (file)
@@ -49,7 +49,7 @@ class login_signup_form_1 extends moodleform {
         $mform->setDefault('country', '');
 
         // buttons
-        $this->add_action_buttons(true, false, get_string('createaccount'));
+        $this->add_action_buttons(true, get_string('createaccount'));
 
        }
 
index 3adb2b38a9632d2a908f9ff7f41a8585d20a3e2d..c6e78625e927dce5460c9accd5dde9bd279cf10a 100644 (file)
@@ -86,7 +86,7 @@ class mod_forum_post_form extends moodleform {
                } else {
                        $submit_string = get_string('posttoforum', 'forum');
                }
-        $this->add_action_buttons(false, true, $submit_string);
+        $this->add_action_buttons(false, $submit_string);
 
                $mform->addElement('hidden', 'course');
                $mform->setType('course', PARAM_INT);