? robotstxt.info
Index: robotstxt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/robotstxt/Attic/robotstxt.module,v
retrieving revision 1.1.4.4
diff -p -u -r1.1.4.4 robotstxt.module
--- robotstxt.module	6 Aug 2006 09:28:23 -0000	1.1.4.4
+++ robotstxt.module	12 Feb 2007 13:36:04 -0000
@@ -6,9 +6,6 @@
  */
 function robotstxt_help($section) {
   switch ($section) {
-    case 'admin/modules#description':
-      $output = t("Individual robots.txt file for a site in a multisite environment.");
-      break;
     case 'admin/help#robotstxt': 
       $output = t('<p>In a multisite environment, there is no mechanism for having a separate robots.txt file for each site. This module addresses that need by letting you administer the robots.txt file from the settings interface.</p>');
       break;
@@ -42,6 +39,14 @@ function robotstxt_menu($maycache) {
       'type' => MENU_CALLBACK,
       'title' => 'robots.txt'
     );
+    $items[] = array(
+      'path' => 'admin/settings/robotstxt',
+      'title' => t('RobotsTxt'),
+      'description' => t('Manage your robots.txt file.'),
+      'callback' => 'drupal_get_form',
+      'callback arguments' => array('robotstxt_admin_settings'),
+      'access' => user_access('administer site configuration'),
+    );
   }
 
   return $items;
@@ -50,11 +55,16 @@ function robotstxt_menu($maycache) {
 /**
  * You can edit the robots.txt for your site under admin/settings/robotstxt
  */
-function robotstxt_settings() {
-  return array('robotstxt' => array('#type' => 'textarea',
-                                    '#title' => t('Value for robots.txt'),
-                                    '#default_value' => variable_get('robotstxt', ''),
-                                    '#cols' => 60, '#rows' => 20, '#required' => false));
+function robotstxt_admin_settings() {
+  $form['robotstxt'] = array(
+    '#type' => 'textarea',
+    '#title' => t('Value for robots.txt'),
+    '#default_value' => variable_get('robotstxt', ''),
+    '#cols' => 60,
+    '#rows' => 20,
+    '#required' => false);
+
+  return system_settings_form($form);
 }
 
 /**
