diff --git a/modules/drupal.module b/modules/drupal.module index 64709d4aa26faef565a890c6969a2647df796191..3ffbf17766b5abf63ff6a8ef3210ceb47e9885b5 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 64709d4aa26faef565a890c6969a2647df796191..3ffbf17766b5abf63ff6a8ef3210ceb47e9885b5 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";