aboutsummaryrefslogtreecommitdiff
path: root/muamba.module
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-11-22 14:55:57 -0200
committerSilvio Rhatto <rhatto@riseup.net>2011-11-22 14:55:57 -0200
commit1baa58bdadaad694ec52e92829da52ae901ab466 (patch)
tree6f825f9fed0259534b0f59963d187fe40ec55c82 /muamba.module
parent01f345fc6643b010f429a761b239d9e30d1dd479 (diff)
downloadmuamba-1baa58bdadaad694ec52e92829da52ae901ab466.tar.gz
muamba-1baa58bdadaad694ec52e92829da52ae901ab466.tar.bz2
Enhanced message page
Diffstat (limited to 'muamba.module')
-rw-r--r--muamba.module9
1 files changed, 8 insertions, 1 deletions
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 = '<h2>'. t('Messages') .'</h2>';
+ /*
$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;
}
}