diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 23:32:32 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-26 23:32:32 -0300 |
commit | fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06 (patch) | |
tree | 662587dd5b9542a657c3cced55b71fca62b87c55 /muamba.theme.inc | |
parent | 804ed5f81b4e89a66e3e232d641360be23722902 (diff) | |
download | muamba-fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06.tar.gz muamba-fa79ee7ea6e3c06bb68b44cf4c78fb7f339b5f06.tar.bz2 |
Implementing hook_privatemsg_view_alter()
Diffstat (limited to 'muamba.theme.inc')
-rw-r--r-- | muamba.theme.inc | 18 |
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; +} |