class nodereferrer_view_handler_argument_field in NodeReferrer 6
Same name and namespace in other branches
- 7 views/nodereferrer_view_handler_argument_field.inc \nodereferrer_view_handler_argument_field
Views handler to filter nodes by nodereferer fields
Hierarchy
- class \nodereferrer_view_handler_argument extends \views_handler_argument
Expanded class hierarchy of nodereferrer_view_handler_argument_field
1 string reference to 'nodereferrer_view_handler_argument_field'
- nodereferrer_views_data_alter in views/
nodereferrer.views.inc - @file nodereferrer.module Views integration
File
- views/
nodereferrer_view_handler_argument_field.inc, line 10 - nodereferrer.module Views integration
View source
class nodereferrer_view_handler_argument_field extends nodereferrer_view_handler_argument {
function get_options_title() {
return t('Using field');
}
function get_options() {
return nodereferrer_nodereference_field_options();
}
function get_node_list() {
$nid = (int) $this->argument;
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
nodereferrer_view_handler_argument:: |
property | |||
nodereferrer_view_handler_argument:: |
function | Admin summary | ||
nodereferrer_view_handler_argument:: |
function | Form to get filter parameters | ||
nodereferrer_view_handler_argument:: |
function | Update the query | ||
nodereferrer_view_handler_argument:: |
function | Given a node id, field names and content names, returns the list of nodes that refer to the given node. This takes translation settings into account | ||
nodereferrer_view_handler_argument_field:: |
function |
This should be overriden by descendant classes Overrides nodereferrer_view_handler_argument:: |
||
nodereferrer_view_handler_argument_field:: |
function |
Overrides nodereferrer_view_handler_argument:: |
||
nodereferrer_view_handler_argument_field:: |
function |