? requestinvitation--719758-4.patch
? requestinvitation--719758-5.patch
? requestinvitation--719758-6.patch
Index: requestinvitation.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/requestinvitation/requestinvitation.module,v
retrieving revision 1.23.2.1
diff -u -p -r1.23.2.1 requestinvitation.module
--- requestinvitation.module	25 Dec 2009 16:17:03 -0000	1.23.2.1
+++ requestinvitation.module	23 Aug 2010 22:19:34 -0000
@@ -8,18 +8,6 @@
  */
 
 /**
- * Returns the description of site
- */
-function get_description() {
-
-  //Give a description about your site here
-  $description = t("You can give a brief description of your site or what you intended to do through this module here.");
-
-  return $description;
-}
-
-
-/**
  * Implementation of hook_help().
  */
 function requestinvitation_help($path, $arg) {
@@ -40,12 +28,26 @@ function requestinvitation_help($path, $
 function requestinvitation_menu() {
 
   $items['admin/settings/requestinvitation'] = array(
-    'title' => 'Request Invitation',
+    'title' => 'Invitation Request Queue',
     'description' => t('Configure Request Invitation settings.'),
     'page callback' => 'drupal_get_form',
     'page arguments' => array('requestinvitation_configure_form'),
     'access arguments' => array('administer requests'),
-    );
+  );
+  
+  $items['admin/settings/requestinvitation/requests'] = array(
+    'title' => 'Invitation Request Queue',
+    'type' => MENU_DEFAULT_LOCAL_TASK
+  );
+  
+  $items['admin/settings/requestinvitation/settings'] = array(
+    'title' => 'Request Invitation Settings',
+    'description' => t('Configure Request Invitation settings.'),
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('requestinvitation_settings_form'),
+    'access arguments' => array('administer requests'),
+    'type' => MENU_LOCAL_TASK
+  );
 
   $items['requestinvitation'] = array(
     'title' => 'Request Invitation',
@@ -263,6 +265,19 @@ function requestinvitation_configure_for
   }
 }
 
+function requestinvitation_settings_form() {
+  $form = array();
+
+  $form['welcome_text'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Welcome text'),
+    '#description' => t('This text will be shown in the block as a welcome text.'),
+    '#default_value' => variable_get('welcome_text', t('Access to this site is currently restricted. Enter your email address here to request an invitation:')),
+  );
+
+  return system_settings_form($form);
+}
+
 function requestinvitation_send_invitation($id, $form, $resend = FALSE) {
 
     $invite = db_fetch_object(db_query("SELECT email FROM {requestinvitation} WHERE rid = %d", $id));
@@ -304,7 +319,7 @@ function requestinvitation_form($context
     case 'block':
       $form['welcome'] = array(
           '#type' => 'fieldset',
-          '#description' => filter_xss_admin(get_description())
+          '#description' => filter_xss_admin(variable_get('welcome_text',t('Access to this site is currently restricted. Enter your email address here to request an invitation:')))
           );
       $form['welcome']['email'] = array(
           '#type' => 'textfield',
@@ -419,4 +434,4 @@ function theme_requestinvitation_configu
     $output .= "</div>\n";
     return $output;
   }
-}
\ No newline at end of file
+}
