function viewsphpfilter_views_data_alter in Views PHP Filter 6
Same name and namespace in other branches
- 7 viewsphpfilter.views.inc \viewsphpfilter_views_data_alter()
Implementation of hook_views_data_alter() from Views API
File
- ./
viewsphpfilter.views.inc, line 7
Code
function viewsphpfilter_views_data_alter(&$data) {
$data['node']['nid_php'] = array(
'real field' => 'nid',
'title' => t('Node ID PHP handler'),
'title short' => t('PHP filter'),
//'operator' => 'views_handler_operator_or',
//'cacheable' => 'no',
'help' => t('This filter allows nodes to be filtered by Node ID. PHP code should return an array with node IDs. ID lists should be separated by commas.'),
'filter' => array(
'field' => 'nid',
'name table' => 'node',
'handler' => 'views_handler_filter_node_nid_php',
),
);
}