From 1baa58bdadaad694ec52e92829da52ae901ab466 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 22 Nov 2011 14:55:57 -0200 Subject: Enhanced message page --- muamba.module | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'muamba.module') diff --git a/muamba.module b/muamba.module index b35949d..1a5967d 100644 --- a/muamba.module +++ b/muamba.module @@ -267,18 +267,25 @@ function muamba_privatemsg_view_alter(&$content) { if (!empty($transaction)) { global $user; + include_once('muamba.embed.inc'); + $node = node_load($transaction['nid']); $available = muamba_check_availability($node->nid); $widget = ($node->uid == $user->uid) ? 'owner' : 'requester'; + $info = muamba_embed_view('muambas', array($node->nid), 'info'); + $title = '

'. t('Messages') .'

'; + /* $bar = theme('muamba_widget_'. $widget, array( 'node' => $node, 'transaction' => $transaction, 'available' => $available, 'size' => 'big', )); + */ - $content['participants']['#markup'] = $bar . $content['participants']['#markup']; + //$content['participants']['#markup'] = $bar . $content['participants']['#markup']; + $content['participants']['#markup'] = $info . $title; } } -- cgit v1.2.3