### Eclipse Workspace Patch 1.0
#P drupal-contrib-5
Index: modules/robotstxt/robotstxt.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/robotstxt/robotstxt.module,v
retrieving revision 1.2.2.1
diff -u -r1.2.2.1 robotstxt.module
--- modules/robotstxt/robotstxt.module	23 Mar 2007 01:33:39 -0000	1.2.2.1
+++ modules/robotstxt/robotstxt.module	19 Jun 2007 21:01:44 -0000
@@ -73,5 +73,12 @@
 function robotstxt_robots() {
   drupal_set_header("Content-type: text/plain");
   print check_plain(variable_get('robotstxt', ''));
+
+  // Hook other modules for adding additional lines to robots.txt
+  $lines = module_invoke_all('robotstxt');
+  foreach ($lines as $line) {
+    print check_plain($line) . "\n";
+  }
+
   exit;
 }
