From 1a5fcacdd9d6831a01d8eab8f49674c59c25cb80 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Thu, 9 Oct 2003 18:53:22 +0000 Subject: - Committed part 3 of Michael's help system improvements: removed the $help parameter from the menu() function. --- modules/aggregator.module | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 956e266bf..c81248028 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -2,12 +2,11 @@ // $Id$ -function import_help($section = "admin/import/help") { +function import_help($section = "admin/help#import") { $output = ""; switch ($section) { - case 'admin/help': - case 'admin/import/help': + case 'admin/help#import': $output .= "

Thousands of web sites, especially news sites and weblogs, syndicate their most recent site content for others to display. The syndicated content always includes titles, also known as headlines, for the newest published stories. Each headline acts as a direct link to the stories on the remote site. Along with the headline, most sites typically provide either the first few paragraphs of the story or a short summary. Many individuals use client-based news aggregators on their personal computer to aggregate content, such as %amphetadesk

"; $output .= "

Drupal also has a news aggregator built in as a standard feature. With it, you can subscribe to feeds from other sites and display their content for your site users. Simply enable the import module in site administration and enter the feeds that you choose.

"; $output .= "

What do I need to subscribe to a feed?

"; @@ -99,12 +98,12 @@ function import_link($type) { if ($type == "system") { if (user_access("administer news feeds")) { - menu("admin/node/syndication", t("syndication"), NULL, NULL, 5); - menu("admin/node/syndication/news", t("RSS/RDF"), "import_admin", import_help("admin/node/syndication/news")); - menu("admin/node/syndication/news/add/feed", t("new feed"), "import_admin", import_help("admin/node/syndication/news/add/feed"), 2); - menu("admin/node/syndication/news/add/bundle", t("new bundle"), "import_admin", import_help("admin/node/syndication/news/add/bundle"), 3); - menu("admin/node/syndication/news/tag", t("tag items"), "import_admin", import_help("admin/node/syndication/news/tag"), 4); - menu("admin/node/syndication/news/help", t("help"), "import_help", NULL, 9); + menu("admin/node/syndication", t("syndication"), NULL, 5); + menu("admin/node/syndication/news", t("RSS/RDF"), "import_admin"); + menu("admin/node/syndication/news/add/feed", t("new feed"), "import_admin", 2); + menu("admin/node/syndication/news/add/bundle", t("new bundle"), "import_admin", 3); + menu("admin/node/syndication/news/tag", t("tag items"), "import_admin", 4); + menu("admin/node/syndication/news/help", t("help"), "import_help", 9); } } -- cgit v1.2.3