uid; $account_name = $account->name; if ($account_id != $user->uid) { $url = privatemsg_get_link($account); if (!empty($url)) { $variables['privatemsg'] = l(t('Send private message'), $url, array('attributes' => array('class' => array('author-privatemsg-icon'), 'title' => t('Send @name a private message', array('@name' => $account_name))), 'html' => TRUE)); } } } /** * Implementation of hook_author_pane_allow_preprocess_disable(). */ function privatemsg_author_pane_allow_preprocess_disable() { return array('privatemsg' => 'Privatemsg'); }