added function lesson_clean_data_submitted(), this cleans the object made from data_s...
authormichaelpenne <michaelpenne>
Wed, 26 Jan 2005 00:30:46 +0000 (00:30 +0000)
committermichaelpenne <michaelpenne>
Wed, 26 Jan 2005 00:30:46 +0000 (00:30 +0000)
mod/lesson/locallib.php

index 5a5bd63a0d9ec417759385c1c3c52e14511e2bb5..3cbb7ef9748f1a75474162ad93f4796daad7d521 100644 (file)
@@ -1134,9 +1134,15 @@ function lesson_check_nickname($name) {
 
 /*******************************************************************/
 function lesson_clean_data_submitted() {
-//
-//
+// this function runs through all post/get data submitted to a page
+// and runs clean_param on each
+// returns an object
+       
+       // get the data
        $form = data_submitted();
+       
+       // run through and clean each form value
+         // detect arrays as well and process them accordingly
        foreach ($form as $valuename => $formvalue) {
                if (is_array($formvalue)) {
                        foreach ($formvalue as $index => $formsubvalue) {