cis notified web server of a job completion; upload form interface and validation...
[living-lab-site.git] / application / config / form_validation.php
index 042d5f7..85c5ca8 100644 (file)
@@ -83,6 +83,11 @@ $config = array(
                        'field'=>'locality',
                        'label'=>'lang:user_locality',
                        'rules'=>'trim|ucwords|xss_clean|prep_for_form'
+               ),
+               array(
+                       'field'=>'captcha',
+                       'label'=>'lang:captcha',
+                       'rules'=>'callback__required_by_register|callback__check_captcha'
                )
        ),
        'activate'=> array(
@@ -119,6 +124,28 @@ $config = array(
                        'label'=>'lang:video_comment',
                        'rules'=>'trim|required|xss_clean|callback__is_user_loggedin'
                )
+       ),
+       'upload'=> array(
+               array(
+                       'field'=>'video-upload-file',
+                       'label'=>'lang:video_upload_file',
+                       'rules'=>'callback__required_upload|callback__valid_upload'
+               ),
+               array(
+                       'field'=>'video-title',
+                       'label'=>'lang:video_title',
+                       'rules'=>'trim|required|xss_clean'
+               ),
+               array(
+                       'field'=>'video-description',
+                       'label'=>'lang:video_description',
+                       'rules'=>'trim|required|xss_clean'
+               ),
+               array(
+                       'field'=>'video-tags',
+                       'label'=>'lang:video_tags',
+                       'rules'=>'required|callback__valid_tags'
+               )
        )
 );