You are here

function og_handler_field_nodelink in Organic groups 5.2

Same name and namespace in other branches
  1. 5.8 og_views.inc \og_handler_field_nodelink()
  2. 5 og_views.inc \og_handler_field_nodelink()
  3. 5.3 og_views.inc \og_handler_field_nodelink()
  4. 5.7 og_views.inc \og_handler_field_nodelink()
1 string reference to 'og_handler_field_nodelink'
og_views_tables in ./og_views.inc
Implementation of the hook_views_tables()

File

./og_views.inc, line 947

Code

function og_handler_field_nodelink($fieldinfo, $fielddata, $value, $data) {

  // we have to query to get all the groups into a single element
  $result = og_get_node_groups_result($data->nid);
  while ($row = db_fetch_object($result)) {
    $links[] = l($row->title, "node/{$row->group_nid}");
  }
  if ($links) {
    return implode(', ', $links);
  }
}