aboutsummaryrefslogtreecommitdiff
path: root/muamba.module
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-23 18:53:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-23 18:53:39 -0300
commiteccec7929df788834f12ba4c6efbccf85a30d530 (patch)
treeb4d1b42e2589e4767253798f3a2735f027fecb67 /muamba.module
parent6bae340a5a1e96acba6dd50fb07ba290605b897a (diff)
downloadmuamba-eccec7929df788834f12ba4c6efbccf85a30d530.tar.gz
muamba-eccec7929df788834f12ba4c6efbccf85a30d530.tar.bz2
Adding muamba_system
Diffstat (limited to 'muamba.module')
-rw-r--r--muamba.module8
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(