aboutsummaryrefslogtreecommitdiff
path: root/muamba.theme.inc
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-09-26 23:32:32 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-09-26 23:32:32 -0300
commitfa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06 (patch)
tree662587dd5b9542a657c3cced55b71fca62b87c55 /muamba.theme.inc
parent804ed5f81b4e89a66e3e232d641360be23722902 (diff)
downloadmuamba-fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06.tar.gz
muamba-fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06.tar.bz2
Implementing hook_privatemsg_view_alter()
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r--muamba.theme.inc18
1 files changed, 18 insertions, 0 deletions
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 = '<a href="'. $path .'?width=500&height=500&iframe=true';
+ $output .= '" class="colorbox-ajax colorbox-load">';
+ $output .= $text .'</a>';
+
+ return $output;
+}