From eccec7929df788834f12ba4c6efbccf85a30d530 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 23 Sep 2011 18:53:39 -0300 Subject: Adding muamba_system --- muamba.module | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'muamba.module') diff --git a/muamba.module b/muamba.module index 40d199f..fbddf45 100644 --- a/muamba.module +++ b/muamba.module @@ -10,7 +10,7 @@ */ function muamba_permission() { return array( - 'administer muamba' => array( + 'administer muamba' => array( 'title' => t('request item'), 'description' => t('Request an item to be borrowed or donated.'), ), @@ -42,12 +42,10 @@ function muamba_menu() { function muamba_node_view($node, $view_mode, $langcode) { global $user; - /* - // Do not show widget to the owner - if ($node->uid == $user->uid) { + // Do not show widget to the owner or on non-muamba content types + if ($node->uid == $user->uid || $node->type != 'muamba') { return; } - */ if ($view_mode == 'full') { $node->content['muamba'] = array( -- cgit v1.2.3