function nat_views_handler_arg_nid in Node Auto Term [NAT] 5
1 string reference to 'nat_views_handler_arg_nid'
- nat_views_arguments in includes/
nat_views.inc
File
- includes/
nat_views.inc, line 42
Code
function nat_views_handler_arg_nid($op, &$query, $argtype, $arg = '') {
switch ($op) {
case 'summary':
$query
->add_table('nat', true);
$query
->add_field('nid', 'nat');
$query
->add_field('tid', 'nat');
$fieldinfo['field'] = "nat.nid";
return $fieldinfo;
case 'sort':
// do nothing here.
break;
case 'filter':
$nid = intval($arg);
$query
->add_table('nat', true);
$query
->add_where("nat.nid = {$nid}");
break;
case 'link':
// do nothing here
break;
case 'title':
// do nothing here
break;
}
}