diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-06-10 19:49:16 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-06-10 19:49:16 +0000 |
commit | b06bbe74811561002ac986db26ebd06de5343857 (patch) | |
tree | 9d9c0f9c25de38de6917d4fbb1cd1afb14289c4f /modules/aggregator | |
parent | d480507f0de23cafff5ce448b1e8beee2434e54b (diff) | |
download | brdo-b06bbe74811561002ac986db26ebd06de5343857.tar.gz brdo-b06bbe74811561002ac986db26ebd06de5343857.tar.bz2 |
- default theme added to theme options + some clean up.
- title of "blog it" item is used as default node title.
- added link to news feed admin pages on import_page.
- "blog it" link only shows when the blog module is available.
Diffstat (limited to 'modules/aggregator')
-rw-r--r-- | modules/aggregator/aggregator.module | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/aggregator/aggregator.module b/modules/aggregator/aggregator.module index e50b77c5b..fe9a2a2cd 100644 --- a/modules/aggregator/aggregator.module +++ b/modules/aggregator/aggregator.module @@ -531,6 +531,9 @@ function import_page_info() { $links[] = lm(t("news by source"), array("mod" => "import", "op" => "feeds"), "", array("title" => t("View the latest headlines sorted by source."))); $links[] = lm(t("news by topic"), array("mod" => "import", "op" => "bundles"), "", array("title" => t("View the latest headlines sorted by topic."))); $links[] = lm(t("news sources"), array("mod" => "import", "op" => "sources"), "", array("title" => t("View a list of all the websites we syndicate from."))); + if (user_access("administer news feeds")) { + $links[] = la(t("administer news feeds"), array("mod" => "import"), "", array("title" => t("View the news feed administrative pages."))); + } return "<div align=\"center\">". $theme->links($links) ."</div>"; } @@ -542,7 +545,9 @@ function import_page_last() { $output .= "<table border=\"0\" cellpadding=\"4\" cellspacing=\"2\">"; while ($item = db_fetch_object($result)) { - $links[] = lm(t("blog it"), array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); + if (module_exist("blog")) { + $links[] = lm(t("blog it"), array("mod" => "node", "op" => "add", "type" => "blog", "iid" => $item->iid), "", array("title" => t("Comment on this news item in your personal blog."))); + } $links[] = lm(t("feed"), array("mod" => "import", "op" => "feed", "id" => $item->fid), "", array("title" => t("Read more syndicated news from this feed."))); if ($item->link) { |