From 694a38c1793b096c2dfdf07be4a0446c11eb7995 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 21 Aug 2003 20:50:03 +0000 Subject: - Updated modules to new help system. Patch by Michael. --- modules/page.module | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'modules/page.module') diff --git a/modules/page.module b/modules/page.module index 8406cc70a..273e90ec0 100644 --- a/modules/page.module +++ b/modules/page.module @@ -1,16 +1,30 @@ The page module is used to create a static page. 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.

"; - $output .= "

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.

"; +function page_help($section = "admin/page/help") { + $output = ""; - return $output; + switch ($section) { + case 'admin/help': + case 'admin/page/help': + $output .= "

The page module is used to create a static page. 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.

"; + $output .= "

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.

"; + 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() { -- cgit v1.2.3