function views_related_content_handler_filter_author::query in Views Related Content 7
File
- views/
views_related_content_handler_filter_author.inc, line 16
Class
- views_related_content_handler_filter_author
- 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();
}
}