diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-06-30 17:51:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-06-30 17:51:04 +0000 |
commit | eacfc0425d8e6905e048f3ab934e4baa00b0abb3 (patch) | |
tree | dba23b6b1b7fe4553017b2129d7071b2108dfa36 /modules | |
parent | 52aa41171efc2dbc3403388cabce31b0f08ee660 (diff) | |
download | brdo-eacfc0425d8e6905e048f3ab934e4baa00b0abb3.tar.gz brdo-eacfc0425d8e6905e048f3ab934e4baa00b0abb3.tar.bz2 |
- Added 'drupal' link to pages.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/drupal.module | 16 | ||||
-rw-r--r-- | modules/drupal/drupal.module | 16 |
2 files changed, 16 insertions, 16 deletions
diff --git a/modules/drupal.module b/modules/drupal.module index 64709d4aa..3ffbf1776 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 64709d4aa..3ffbf1776 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"; |