/**
  * the index page of the user homes admin
  */
 public function index()
 {
     $form = upload_configuration::get_configure_form();
     if (request::method() == "post") {
         access::verify_csrf();
         if ($form->validate()) {
             upload_configuration::extractForm($form);
             message::success(t("GWTOrganise Module Configured!"));
         }
     } else {
         upload_configuration::populateForm($form);
     }
     print $form;
 }
 /**
  * the index page of the user homes admin
  */
 public function index()
 {
     $form = upload_configuration::get_configure_form();
     if (request::method() == "post") {
         access::verify_csrf();
         if ($form->validate()) {
             upload_configuration::extractForm($form);
             message::success(t("GWTOrganise Module Configured!"));
             json::reply(array("result" => "success"));
             return;
         } else {
             json::reply(array("result" => "error", "html" => (string) $form));
             return;
         }
     } else {
         upload_configuration::populateForm($form);
     }
     print $form;
 }