From 9c43e8fc7a192dfe768c76a539373915bddaa0aa Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 29 Jun 2001 22:08:57 +0000 Subject: 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! --- modules/meta.module | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'modules/meta.module') diff --git a/modules/meta.module b/modules/meta.module index 092bf1d4c..207123b80 100644 --- a/modules/meta.module +++ b/modules/meta.module @@ -6,10 +6,19 @@ function meta_help() { meta tags"; + } + + return $links ? $links : array(); +} + + function meta_form($type, $edit = array()) { $c = db_query("SELECT * FROM collection WHERE types LIKE '%". check_input($type) ."%'"); while ($collection = db_fetch_object($c)) { @@ -129,9 +138,9 @@ function meta_overview() { } function meta_admin() { - global $user, $edit, $type, $op, $id; + global $edit, $type, $op, $id; - if (user_access($user, "add and edit meta tags")) { + if (user_access("administer meta tags")) { print "add new collection | add new meta-tag | preview node forms | overview | help
\n"; -- cgit v1.2.3