class nodereferrer_view_handler_field_field in NodeReferrer 6
Same name and namespace in other branches
- 7 views/nodereferrer_view_handler_field_field.inc \nodereferrer_view_handler_field_field
Views handler to get fields by nodereferrer fields
Hierarchy
- class \nodereferrer_view_handler_field extends \views_handler_field
Expanded class hierarchy of nodereferrer_view_handler_field_field
1 string reference to 'nodereferrer_view_handler_field_field'
- nodereferrer_views_data_alter in views/
nodereferrer.views.inc - @file nodereferrer.module Views integration
File
- views/
nodereferrer_view_handler_field_field.inc, line 10 - nodereferrer.module Views integration
View source
class nodereferrer_view_handler_field_field extends nodereferrer_view_handler_field {
function get_options_title() {
return t('Using field');
}
function get_options() {
return nodereferrer_nodereference_field_options();
}
function get_item_list($nid) {
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_field:: |
function | This should be overriden by descendant classes | ||
nodereferrer_view_handler_field:: |
function | Form to get field parameters | ||
nodereferrer_view_handler_field:: |
function | All we need to do is ensure our table is there | ||
nodereferrer_view_handler_field:: |
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_field:: |
function | Render the field. | ||
nodereferrer_view_handler_field_field:: |
function | |||
nodereferrer_view_handler_field_field:: |
function |
Overrides nodereferrer_view_handler_field:: |
||
nodereferrer_view_handler_field_field:: |
function |