diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-08-21 20:50:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-08-21 20:50:03 +0000 |
commit | 694a38c1793b096c2dfdf07be4a0446c11eb7995 (patch) | |
tree | 3944baed50badd958ea96005fae27035129dbd38 /modules/page | |
parent | 405d2a3f10daaf4a90235acc10a23e2dc92b0d30 (diff) | |
download | brdo-694a38c1793b096c2dfdf07be4a0446c11eb7995.tar.gz brdo-694a38c1793b096c2dfdf07be4a0446c11eb7995.tar.bz2 |
- Updated modules to new help system. Patch by Michael.
Diffstat (limited to 'modules/page')
-rw-r--r-- | modules/page/page.module | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/modules/page/page.module b/modules/page/page.module index 8406cc70a..273e90ec0 100644 --- a/modules/page/page.module +++ b/modules/page/page.module @@ -1,16 +1,30 @@ <?php // $Id$ -function page_help() { - $output .= "<p>The page module is used to create a <i>static page</i>. Unlike a story, a static page is a persistent web page on your site which usually shortcuts the typical lifecycle of user generated content (i.e. submit -> moderate -> post -> comment). A static page is usually linked from the main navigation bar, using whatever text the author wishes. To create a static page without this navigation link, simply skip the form field which requests link text.</p>"; - $output .= "<p>Site pages, unlike many other forms of Drupal content, may be made of PHP code in addition to HTML and text. All Drupal objects and functions are available to a site administrator.</p>"; +function page_help($section = "admin/page/help") { + $output = ""; - return $output; + switch ($section) { + case 'admin/help': + case 'admin/page/help': + $output .= "<p>The page module is used to create a <i>static page</i>. Unlike a story, a static page is a persistent web page on your site which usually shortcuts the typical lifecycle of user generated content (i.e. submit -> moderate -> post -> comment). A static page is usually linked from the main navigation bar, using whatever text the author wishes. To create a static page without this navigation link, simply skip the link text field.</p>"; + $output .= "<p>Site pages, unlike many other forms of Drupal content, may be made of PHP code in addition to HTML and text. All Drupal objects and functions are available to a site administrator.</p>"; + break; + case 'admin/system/modules': + $output = "Enables the creation of a static pages that can be added to the navigation system."; + break; + + } + + return t($output); } function page_system($field) { - $system["description"] = t("Enables the creation of a static pages that can be added to the navigation system."); - return $system[$field]; + $output = ""; + + if ($field == "description") {$output = page_help("admin/system/modules"); }; + + return $output; } function page_perm() { |