function ds_views_row_node in Node displays 7
Same name and namespace in other branches
- 6.3 nd.module \ds_views_row_node()
- 6.2 nd.module \ds_views_row_node()
Render the node object through the DS views plugin.
Parameters
array $vars The variables to manipulate.:
string $build_mode The build mode to use on this object.:
File
- ./
nd.module, line 245 - Node displays.
Code
function ds_views_row_node(&$vars, $build_mode) {
$nid = $vars['row']->nid;
if (!is_numeric($nid)) {
return;
}
$node = node_load($nid);
if (empty($node)) {
return;
}
$node->build_mode = $build_mode;
// Check the teaser flag and show_links flag.
$teaser = $node->build_mode != 'full' ? TRUE : FALSE;
$show_links = ds_show_field('nd', $node->type, $build_mode, 'links');
// Build object.
$vars['object'] = node_view($node, $teaser, FALSE, $show_links);
}