summaryrefslogtreecommitdiff
path: root/modules/import.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-06-29 22:08:57 +0000
committerDries Buytaert <dries@buytaert.net>2001-06-29 22:08:57 +0000
commit9c43e8fc7a192dfe768c76a539373915bddaa0aa (patch)
tree32dfe7f04171c2600be4164ca529d7f42766ec32 /modules/import.module
parent124694ee4dbcc1df5dfc2d419ed2393619883071 (diff)
downloadbrdo-9c43e8fc7a192dfe768c76a539373915bddaa0aa.tar.gz
brdo-9c43e8fc7a192dfe768c76a539373915bddaa0aa.tar.bz2
Extremely large commit:
- Fixed tiny quote problem in account.php. - Fixed tiny bug in comment.inc. - Fixed tiny bug in comment.module. - Fixed tiny bug in meta.module. - Simplified user_access() API. - Rewrote link system: still needs fine-tuning and testing so don't upgrade if you are running a production site. ;) Updated all modules and themes to reflect this change. All other themes and modules need updating too!
Diffstat (limited to 'modules/import.module')
-rw-r--r--modules/import.module14
1 files changed, 11 insertions, 3 deletions
diff --git a/modules/import.module b/modules/import.module
index 447090738..44f0b480a 100644
--- a/modules/import.module
+++ b/modules/import.module
@@ -12,7 +12,15 @@ function import_help() {
}
function import_perm() {
- return array("add and edit news feeds");
+ return array("administer news feeds");
+}
+
+function import_link($type) {
+ if ($type == "admin") {
+ $links[] = "<a href=\"admin.php?mod=import\">news feeds</a>";
+ }
+
+ return $links ? $links : array();
}
function import_cron() {
@@ -241,9 +249,9 @@ function import_view_item() {
}
function import_admin() {
- global $user, $op, $id, $type, $edit;
+ global $op, $id, $type, $edit;
- if (user_access($user, "add and edit news feeds")) {
+ if (user_access("administer news feeds")) {
print "<SMALL><A HREF=\"admin.php?mod=import&type=bundle&op=add\">add new bundle</A> | <A HREF=\"admin.php?mod=import&type=feed&op=add\">add new feed</A> | <A HREF=\"admin.php?mod=import&type=bundle&op=view\">available bundles</A> | <A HREF=\"admin.php?mod=import&type=item&op=view\">available items</A> | <A HREF=\"admin.php?mod=import&op=view\">overview</A> | <A HREF=\"admin.php?mod=import&op=help\">help</A></SMALL><HR>";