summaryrefslogtreecommitdiff
path: root/modules/page
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-10-09 18:53:22 +0000
committerDries Buytaert <dries@buytaert.net>2003-10-09 18:53:22 +0000
commit1a5fcacdd9d6831a01d8eab8f49674c59c25cb80 (patch)
tree058d3837d5609f0e26442f38b3e35fe7305d1d36 /modules/page
parent928527538757cffbaaee811d06ae7b6a99f2afe4 (diff)
downloadbrdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.gz
brdo-1a5fcacdd9d6831a01d8eab8f49674c59c25cb80.tar.bz2
- Committed part 3 of Michael's help system improvements: removed the $help
parameter from the menu() function.
Diffstat (limited to 'modules/page')
-rw-r--r--modules/page/page.module7
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/page/page.module b/modules/page/page.module
index d7bdc3a3b..0dd848996 100644
--- a/modules/page/page.module
+++ b/modules/page/page.module
@@ -1,12 +1,11 @@
<?php
// $Id$
-function page_help($section = "admin/page/help") {
+function page_help($section = "admin/help#page") {
$output = "";
switch ($section) {
- case 'admin/help':
- case 'admin/page/help':
+ case 'admin/help#page':
$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>";
$output = t($output);
@@ -90,7 +89,7 @@ function page_link($type) {
if ($type == "system") {
if (user_access("maintain static pages")) {
- menu("node/add/page", t("static page"), "page_page", NULL, 0);
+ menu("node/add/page", t("static page"), "page_page", 0);
}
}