summaryrefslogtreecommitdiff
path: root/modules/page
diff options
context:
space:
mode:
Diffstat (limited to 'modules/page')
-rw-r--r--modules/page/page.module26
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 -&gt; moderate -&gt; post -&gt; 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 -&gt; moderate -&gt; post -&gt; 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() {