From fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 26 Sep 2011 23:32:32 -0300 Subject: Implementing hook_privatemsg_view_alter() --- muamba.theme.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'muamba.theme.inc') diff --git a/muamba.theme.inc b/muamba.theme.inc index e5f9180..c8db199 100644 --- a/muamba.theme.inc +++ b/muamba.theme.inc @@ -44,6 +44,10 @@ function theme_muamba_transactions($variables) { 'user' => $transaction['user']->name, 'status' => t(muamba_statuses($transaction['status'])), 'actions' => implode($actions, ' | '), + //'thread' => theme('muamba_colorbox_link', array( + // 'path' => '/messages/view/'. $transaction['thread_id'], + // 'text' => t('view messages'), + //)), 'thread' => l( t('view messages'), 'messages/view/'. $transaction['thread_id'], @@ -63,3 +67,17 @@ function theme_muamba_transactions($variables) { return $output; } + +/** + * Theme callback. + */ +function theme_muamba_colorbox_link($variables) { + $path = $variables['path']; + $text = $variables['text']; + + $output = ''; + $output .= $text .''; + + return $output; +} -- cgit v1.2.3