' . t('Send PM') . '', $url, array('attributes' => array('class' => 'author-pane-link', 'title' => t('Send @name a private message', array('@name' => privatemsg_recipient_format($account, array('plain' => TRUE))))), 'html' => TRUE)); // Early versions of the template used this variable so fill it for // backwards compatability. $variables['privatemsg_link'] = $variables['privatemsg']; } } else { // Author Pane 1.x $image_path = $variables['image_path']; // Send private message if ($url = privatemsg_get_link($account)) { $img = theme('image', "$image_path/private-message.png", t('Send private message'), t('Send private message'), NULL, TRUE); $variables['privatemsg'] = l($img, $url, array('absolute' => TRUE, 'html' => TRUE)); $variables['privatemsg_link'] = l(t('Send private message'), $url, array('attributes' => array('class' => 'author-privatemsg-icon'), 'html' => TRUE)); } } } /** * Implementation of hook_author_pane_allow_preprocess_disable(). */ function privatemsg_author_pane_allow_preprocess_disable() { return array('privatemsg' => 'Privatemsg'); }