You are here

function privatemsg_realname_privatemsg_sql_participants_alter in Privatemsg 6.2

Implements hook_privatemsg_sql_participants_alter().

File

privatemsg_realname/privatemsg_realname.module, line 98

Code

function privatemsg_realname_privatemsg_sql_participants_alter(&$fragments, $thread_id) {

  // Select the realname.
  $fragments['select'][] = 'r.realname';

  // Join realname table.
  $fragments['inner_join'][] = 'LEFT JOIN {realname} r ON (r.uid = u.uid)';

  // Add realname to GROUP BY.
  $fragments['group_by'][] = 'r.realname';
}