MDL-15348 Make the filepicker component return the itemid of the new file (in user_dr...
authormoodler <moodler>
Tue, 2 Sep 2008 02:59:01 +0000 (02:59 +0000)
committermoodler <moodler>
Tue, 2 Sep 2008 02:59:01 +0000 (02:59 +0000)
lib/form/filepicker.php

index b577a21f93898cdbacaa3b7c1fe92b53bb281c90..f57586fe523b1c5d6a3138f2eb39be47e6e1ad4e 100644 (file)
@@ -84,4 +84,7 @@ EOD;
             return $str;
         }
     }
+    function exportValue(&$submitValues, $assoc = false) {
+        return array($this->_attributes['name'] => $submitValues[$this->_attributes['name']]);
+    }
 }