Selaa lähdekoodia

terms of service

Signed-off-by: bachy <git@g-u-i.net>
bachy 12 vuotta sitten
vanhempi
commit
1f9bef33b9
1 muutettua tiedostoa jossa 8 lisäystä ja 2 poistoa
  1. 8 2
      materio_user.module

+ 8 - 2
materio_user.module

@@ -79,10 +79,16 @@ function materio_user_form_alter(&$form, &$form_state, $form_id) {
     // dsm($form);
     $form['account']['pass']['#type'] = 'password';
     $form['account']['pass']['#title'] = t('Password');
+    
     $form['actions']['#type'] = "container";
     $form['actions']['submit']['#value'] = t('Join');
-    // $form['submit'] = $form['actions']['submit'];
-    // unset($form['actions']);
+
+    $form['termsofservices'] = array(
+      '#type' => 'checkbox',
+      '#title' => t('I red and accept') .' '. l('the materiO terms of services', 'node/11178'),
+      '#required' => true,
+    );
+
   }
 }