diff options
Diffstat (limited to 'muamba.module')
-rw-r--r-- | muamba.module | 8 |
1 files changed, 3 insertions, 5 deletions
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( |