You are here

function commons_roots_preprocess_facebook_status_item in Drupal Commons 6.2

This handles the logic of whether or not there should be a recipient link so that non-user recipient_links will be displayed.

File

themes/commons_roots/template.php, line 353

Code

function commons_roots_preprocess_facebook_status_item(&$vars) {
  $status = $vars['status'];

  // Remove the recipient link if it is the recipient is the sender.
  if ($status->type == 'user' && $status->sender == $status->recipient) {
    unset($vars['recipient_link']);
  }
}