diff options
Diffstat (limited to 'muamba.module')
-rw-r--r-- | muamba.module | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/muamba.module b/muamba.module index 3be6d6b..dfe7b21 100644 --- a/muamba.module +++ b/muamba.module @@ -107,6 +107,8 @@ function muamba_menu() { /** * Implements hook_node_view() + * + * @todo */ function muamba_node_view($node, $view_mode, $langcode) { global $user; @@ -117,7 +119,8 @@ function muamba_node_view($node, $view_mode, $langcode) { } if ($view_mode == 'full') { - $transaction = muamba_current_transaction($node); + // @todo: there might be more than one transaction + $transaction = muamba_current_transactions($node); $node->content['muamba'] = array( '#markup' => theme('muamba_widget', array('node' => $node, 'transaction' => $transaction)), '#weight' => 100, |