function og_handler_field_nodelink in Organic groups 5
Same name and namespace in other branches
- 5.8 og_views.inc \og_handler_field_nodelink()
- 5.2 og_views.inc \og_handler_field_nodelink()
- 5.3 og_views.inc \og_handler_field_nodelink()
- 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 1351
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);
}
}