function related_node_handler_filter_content_type::query in Views Related Content 7
File
- views/
views_related_content_handler_filter_content_type.inc, line 17
Class
- related_node_handler_filter_content_type
- Shows the similarity of the node.
Code
function query() {
if (arg(0) == 'node' && is_numeric(arg(1))) {
$nodeid = arg(1);
}
if (isset($nodeid)) {
$result = db_select('node', 'n')
->fields('n')
->condition('nid', $nodeid, '=');
$result = $result
->execute();
return $result
->fetchAssoc();
}
}