contact.author-pane.inc in Author Pane 5
Same filename and directory in other branches
This file provides a preprocess function on behalf of the contact module.
File
modules/contact.author-pane.incView source
<?php
/**
* @file
* This file provides a preprocess function on behalf of the contact module.
*/
/**
* Implementation of hook_preprocess_author_pane().
*/
function contact_preprocess_author_pane(&$variables) {
global $user;
$account = $variables['account'];
$account_id = $account->uid;
$image_path = $variables['image_path'];
if ($account->contact && $account_id != $user->uid && $user->uid != 0) {
$variables['contact'] = l(theme('image', "{$image_path}/contact.png", t('Contact user'), t('Contact user'), NULL, TRUE), "user/{$account_id}/contact", array(), NULL, NULL, FALSE, TRUE);
$variables['contact_link'] = l("Contact user", "user/{$account_id}/contact");
}
}
Functions
Name | Description |
---|---|
contact_preprocess_author_pane | Implementation of hook_preprocess_author_pane(). |