nodereferrer_view_handler_filter_field.inc in NodeReferrer 7
Same filename and directory in other branches
nodereferrer.module Views integration
File
views/nodereferrer_view_handler_filter_field.incView source
<?php
/**
* @file
* nodereferrer.module Views integration
*/
/**
* Views handler to filter nodes by nodereferer fields
*/
class nodereferrer_view_handler_filter_field extends nodereferrer_view_handler_filter {
function get_options_title() {
return t('Using field');
}
function get_options() {
return nodereferrer_nodereference_field_options();
}
function get_node_list() {
$nid = (int) $this->value;
if (empty($this->options['fields'])) {
$fields = array_keys(nodereferrer_nodereference_field_options());
}
else {
$fields = array_keys(array_filter($this->options['fields']));
}
return $this
->referrers($nid, $fields);
}
}
Classes
Name | Description |
---|---|
nodereferrer_view_handler_filter_field | Views handler to filter nodes by nodereferer fields |