Index: taxonomy_access.module
===================================================================
RCS file: /usr/local/cvs/taxonomy_access/taxonomy_access.module,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- taxonomy_access.module	23 Nov 2004 02:34:40 -0000	1.1
+++ taxonomy_access.module	23 Nov 2004 02:51:08 -0000	1.2
@@ -1,4 +1,39 @@
-<?  
+<?php  
+
+function taxonomy_access_help($section) {
+  switch ($section) {
+  	
+  	// Brief message for administrators to explain what this module does
+  	case 'admin/user/configure/category':
+      return t('In this area you will define the permissions that each <a href="%role">user role</a> has for each category.  Each category can have view, update and delete permissions set for each user role.  /*The "Default Permissions" are the permissions applied to all categories for this role.  The <a href="%default">Default</a> role allows you to set the default category permissions for all roles.', array('%role' => url('admin/user/configure/role'), '%default' => url('admin/user/configure/category/0*/')));
+      
+    case 'admin/modules#description': 
+      return t('Allows users to specify which categories and viewed by various roles.');
+      
+    // Creates the header content for the taxonomy_access settings page dependent upon
+    // whether the node is enabled or disabled.
+    // Note: the form that appears on this page is not generated by this fucntion.
+    case 'admin/settings/taxonomy_access':																							
+    
+      $taxonomy_access_enabled = variable_get('taxonomy_access_enabled', FALSE);
+      $message = '';
+      
+      // header message if module is enabled
+      if ($taxonomy_access_enabled) { 
+        $message .= 'The module is currently enabled properly.<br/>';
+        $message .= 'To disable the module properly, select \'disable\' here and save the configuration before disabling it in the modules page.<br/>';
+      }
+      
+      // header message if module is not enabled
+      else {
+      $message .= 'The module is currently disabled, but must also be disabled in the %module_page_link in order for it to be properly disabled.<br/>To properly enable this module, select \'enable\' here and save the configuration.<br/>';
+      $message = t($message, array('%module_page_link' => l(t('modules admin page'), 'admin/modules', array('title' => t('View more.')))   ));
+      }
+      return $message;
+  }
+}
+
+
 function taxonomy_access_menu()  {
   $access = user_access('administer users');
 
@@ -105,14 +140,7 @@
   print theme('page', $output);
 
 }
-function taxonomy_access_help($section)  {
-  switch($section)  {
-    case 'admin/user/configure/category':
-      return t('In this area you will define the permissions that each <a href="%role">user role</a> has for each category.  Each category can have view, update and delete permissions set for each user role.  The "Default Permissions" are the permissions applied to all categories for this role.  The <a href="%default">Default</a> role allows you to set the default category permissions for all roles.', array('%role' => url('admin/user/configure/role'), '%default' => url('admin/user/configure/category/0')));
-    case 'admin/modules#description':
-      return t('Allows the user administrator to control access to categories based on user role.');
-  }
-}
+
 /**
  * Implementation of hook_node_grants()
  * Gives access to taxonomies based on the taxonomy_access table
