--- profile.module 2007-05-28 13:45:54.533000000 -0400 +++ profile.new 2007-05-28 13:43:37.798625000 -0400 @@ -114,6 +114,7 @@ $fields[$record->name] = $record->title; } $fields['user_profile'] = t('Link to full user profile'); + $fields['contact_user'] = t('Link to contact user'); $form['profile_block_author_fields'] = array('#type' => 'checkboxes', '#title' => t('Profile fields to display'), '#default_value' => variable_get('profile_block_author_fields', NULL), @@ -151,6 +152,10 @@ if (isset($use_fields['user_profile']) && $use_fields['user_profile']) { $output .= '
'. l(t('View full user profile'), 'user/'. $account->uid) .'
'; } + + if (isset($use_fields['contact_user']) && $use_fields['contact_user'] && $account->contact) { + $output .= '
'. l(t('Contact ') . $account->name, 'user/'. $account->uid .'/contact') .'
'; + } } if ($output) {