function nodereferrer_views_tables in NodeReferrer 5
Implementation of hook_views_tables
File
- ./
nodereferrer.module, line 371 - Defines a field type for backlinking referencing nodes. @todo -clear content cache with nodeapi. -query nids for access on load/view..
Code
function nodereferrer_views_tables() {
$tables['nodereferrer'] = array(
'filters' => array(
'nodereferrer_filter_field' => array(
'name' => t('NodeReferrer: by field'),
'field' => 'nid',
'operator' => 'nodereferrer_view_handler_operator_innotin',
'handler' => 'nodereferrer_view_handler_filter_field',
'option' => array(
'#type' => 'select',
'#options' => nodereferrer_nodereference_field_options(),
),
'help' => t('Allows views to query the node\'s references by a certain node reference field.'),
),
'nodereferrer_filter_type' => array(
'name' => t('NodeReferrer: by node'),
'field' => 'nid',
'operator' => 'nodereferrer_view_handler_operator_innotin',
'handler' => 'nodereferrer_view_handler_filter_type',
'option' => array(
'#type' => 'select',
'#options' => nodereferrer_nodereference_field_options(),
),
'help' => t('Allows views to query the node\'s references by a certain node type.'),
),
),
);
return $tables;
}