From e2ba97a706f05bd7847da5b85efd5acaa11f8b0b Mon Sep 17 00:00:00 2001 From: Mihai Fieraru Date: Wed, 26 Feb 2014 23:35:44 +0100 Subject: [PATCH] description attached to forms --- sites/all/modules/course_creation/course_creation.module | 3 +++ sites/all/modules/ldap_course_sync/ldap_course_sync.module | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sites/all/modules/course_creation/course_creation.module b/sites/all/modules/course_creation/course_creation.module index 081e4e95..a545efbb 100644 --- a/sites/all/modules/course_creation/course_creation.module +++ b/sites/all/modules/course_creation/course_creation.module @@ -1258,6 +1258,7 @@ function course_creation_form($form,&$form_submit, $variable){ $form['members_to_add'] = array( '#title' => t("Add students to ".$course_name), + '#description' => "These students have requested membership to your course. To accept them, check the respective boxes and press Add.", '#type' => 'checkboxes', '#options' => $memb_options, ); @@ -1344,6 +1345,7 @@ function course_creation_form2($form,&$form_submit, $variable){ $form['tas_to_remove'] = array( '#title' => t("Remove TAs from ".$course_name), + '#description' => "These students are TAs for your course. You can remove them by checking the respective boxes and then pressing Remove TA.", '#type' => 'checkboxes', '#options' => $tas_to_remove, '#weight' => 1, @@ -1363,6 +1365,7 @@ function course_creation_form2($form,&$form_submit, $variable){ $form['ta_to_add'] = array( '#title' => t("

Add TA to ".$course_name), + '#description' => "Please type in the username of the TA.", '#type' => 'textfield', '#size' => 30, '#maxlength' => 60, diff --git a/sites/all/modules/ldap_course_sync/ldap_course_sync.module b/sites/all/modules/ldap_course_sync/ldap_course_sync.module index 40180c7c..45292828 100644 --- a/sites/all/modules/ldap_course_sync/ldap_course_sync.module +++ b/sites/all/modules/ldap_course_sync/ldap_course_sync.module @@ -186,6 +186,7 @@ function ldap_course_sync_form($form,&$form_submit, $variable){ $form['members_to_add'] = array( '#title' => t("Add students to ".$course_name), + '#description' => "These students are registered to your course according to the Jacobs LDAP database and are not part of your group yet. You can add them by checking the respective boxes and pressing the Add button", '#type' => 'checkboxes', '#options' => $memb_options, '#weight' => 9, @@ -218,7 +219,8 @@ function ldap_course_sync_form($form,&$form_submit, $variable){ $form['members_to_remove'] = array( - '#title' => t("Remove students from ".$course_name), + '#title' => "

".t("Remove students from ".$course_name), + '#description' => "These students are NOT registered to your course anymore. You can remove them by checking the respective boxes and pressing the Remove button", '#type' => 'checkboxes', '#options' => $memb_options, '#weight' => 13,