| Commit | Line | Data |
|---|---|---|
| 446de5a3 OT |
1 | <?php |
| 2 | // $Id$ | |
| 3 | ||
| 4 | /** | |
| 5 | * @file | |
| 6 | * Provides a preprocess function on behalf of the privatemsg module. | |
| 7 | */ | |
| 8 | ||
| 9 | /** | |
| 8086d49e | 10 | * Implements hook_preprocess_author_pane(). |
| 446de5a3 OT |
11 | */ |
| 12 | function privatemsg_preprocess_author_pane(&$variables) { | |
| 446de5a3 | 13 | $image_path = $variables['image_path']; |
| 446de5a3 | 14 | // Send private message |
| 93a1235e OT |
15 | if ($url = privatemsg_get_link($variables['account'])) { |
| 16 | $img = theme('image', "$image_path/private-message.png", t('Send private message'), t('Send private message'), NULL, TRUE); | |
| 17 | $variables['privatemsg'] = l($img, $url, array('absolute' => TRUE, 'html' => TRUE)); | |
| 8086d49e | 18 | $variables['privatemsg_link'] = l(t('Send PM') . '<span></span>', $url, array('attributes' => array('class' => 'author-privatemsg-icon'), 'html' => TRUE)); |
| 446de5a3 OT |
19 | } |
| 20 | } |