From 309c71bbfc3e652dce65170a9cc52acfc7bef601 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 6 Oct 2011 23:33:21 -0300 Subject: More widget fixes --- muamba.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'muamba.module') diff --git a/muamba.module b/muamba.module index 5552d8b..840136d 100644 --- a/muamba.module +++ b/muamba.module @@ -119,7 +119,7 @@ function muamba_node_view($node, $view_mode, $langcode) { if ($view_mode == 'full') { $transaction = muamba_current_transaction($node); $node->content['muamba'] = array( - '#markup' => theme('muamba_widget', array('nid' => $node->nid, 'transaction' => $transaction)), + '#markup' => theme('muamba_widget', array('node' => $node, 'transaction' => $transaction)), '#weight' => 100, ); @@ -135,7 +135,7 @@ function muamba_theme($existing, $type, $theme, $path) { 'muamba_widget' => array( 'template' => 'muamba-widget', 'variables' => array( - 'nid' => NULL, + 'node' => NULL, 'transaction' => NULL, ), ), -- cgit v1.2.3