浏览代码

fixing the final validation error for site status

Shawna Spoor 6 年之前
父节点
当前提交
c7196319a5
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      tripal/includes/tripal.registration.inc

+ 6 - 1
tripal/includes/tripal.registration.inc

@@ -26,6 +26,11 @@ function tripal_registration_form($form, &$form_state) {
           connect to the http://tripal.info website and provide updated registration details. If you opt-out, no
           connect to the http://tripal.info website and provide updated registration details. If you opt-out, no
           registration information is communictated.'),
           registration information is communictated.'),
     ];
     ];
+  $form['description'] = [
+    '#title' => 'How will this information be used?',
+    '#type' => 'item',
+    '#markup' => t(''),
+  ];
 
 
   $form['disable_tripal_reporting'] = array(
   $form['disable_tripal_reporting'] = array(
     '#type' => 'checkbox',
     '#type' => 'checkbox',
@@ -45,7 +50,7 @@ function tripal_registration_form($form, &$form_state) {
       '#title' => t('Site Status'),
       '#title' => t('Site Status'),
       '#default_value' => isset($form_data['values']['tripal_reg_site_purpose']) ? $form_data['values']['tripal_reg_site_purpose'] : NULL,
       '#default_value' => isset($form_data['values']['tripal_reg_site_purpose']) ? $form_data['values']['tripal_reg_site_purpose'] : NULL,
       '#options' => $purpose,
       '#options' => $purpose,
-      '#required' => TRUE,
+      '#required' => FALSE,
       '#description' => t('Please register your site regardless if it is experimental (to explore tripal), 
       '#description' => t('Please register your site regardless if it is experimental (to explore tripal), 
        for development of a future site (or updates to an existing site), or a site currently 
        for development of a future site (or updates to an existing site), or a site currently 
        in production. For funding, it is important to know how many sites are active for each category.  If your site changes 
        in production. For funding, it is important to know how many sites are active for each category.  If your site changes