From eacfc0425d8e6905e048f3ab934e4baa00b0abb3 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 30 Jun 2001 17:51:04 +0000
Subject: [PATCH] - Added 'drupal' link to pages.

---
 modules/drupal.module        | 16 ++++++++--------
 modules/drupal/drupal.module | 16 ++++++++--------
 2 files changed, 16 insertions(+), 16 deletions(-)

diff --git a/modules/drupal.module b/modules/drupal.module
index 64709d4aa26f..3ffbf17766b5 100644
--- a/modules/drupal.module
+++ b/modules/drupal.module
@@ -1,5 +1,13 @@
 <?php
 
+function drupal_link($type) {
+  if ($type == "page") {
+    $links[] = "<a href=\"module.php?mod=drupal\">drupal engine</a>";
+  }
+
+  return $links ? $links : array();
+}
+
 function drupal_page() {
   global $theme, $user;
 
@@ -10,14 +18,6 @@ function drupal_page() {
   $output .= " <P>We don't have a real demo site yet but Drupal is used by (and created for) <A HREF=\"http://drop.org/\">http://drop.org/</A>.  Create an account, play with it for a bit, read the <A HREF=\"node.php?title=drupal+handbook\">documentation</A> and spend some time getting used to it.</P>\n";
   $theme->box("Drupal", $output);
 
-/*
-  unset($output);
-  $handle = opendir("drupal");
-  while ($file = readdir($handle)) if (ereg(".jpg", $file) || ereg(".gif", $file)) $output .= " <LI><SMALL><A HREF=\"drupal/$file\">$file</A></SMALL></LI>\n";
-  closedir($handle);
-  $theme->box("Screenshots", $output);
-*/
-
   $output  = "<H3>Download Drupal</H3>\n";
   $output .= " <LI><A HREF=\"drupal/drupal-2.00.tgz\">Drupal 2.00</A> (2001/03/15 - latest version)</LI>\n";
   $output .= " <LI>Drupal 1.00 (2001/01/15)</LI>\n";
diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module
index 64709d4aa26f..3ffbf17766b5 100644
--- a/modules/drupal/drupal.module
+++ b/modules/drupal/drupal.module
@@ -1,5 +1,13 @@
 <?php
 
+function drupal_link($type) {
+  if ($type == "page") {
+    $links[] = "<a href=\"module.php?mod=drupal\">drupal engine</a>";
+  }
+
+  return $links ? $links : array();
+}
+
 function drupal_page() {
   global $theme, $user;
 
@@ -10,14 +18,6 @@ function drupal_page() {
   $output .= " <P>We don't have a real demo site yet but Drupal is used by (and created for) <A HREF=\"http://drop.org/\">http://drop.org/</A>.  Create an account, play with it for a bit, read the <A HREF=\"node.php?title=drupal+handbook\">documentation</A> and spend some time getting used to it.</P>\n";
   $theme->box("Drupal", $output);
 
-/*
-  unset($output);
-  $handle = opendir("drupal");
-  while ($file = readdir($handle)) if (ereg(".jpg", $file) || ereg(".gif", $file)) $output .= " <LI><SMALL><A HREF=\"drupal/$file\">$file</A></SMALL></LI>\n";
-  closedir($handle);
-  $theme->box("Screenshots", $output);
-*/
-
   $output  = "<H3>Download Drupal</H3>\n";
   $output .= " <LI><A HREF=\"drupal/drupal-2.00.tgz\">Drupal 2.00</A> (2001/03/15 - latest version)</LI>\n";
   $output .= " <LI>Drupal 1.00 (2001/01/15)</LI>\n";
-- 
GitLab