You are here

function nat_views_tables in Node Auto Term [NAT] 5

File

includes/nat_views.inc, line 3

Code

function nat_views_tables() {
  $tables['nat'] = array(
    'name' => 'nat',
    'provider' => 'internal',
    'join' => array(
      'type' => 'left',
      'left' => array(
        'table' => 'term_node',
        'field' => 'tid',
      ),
      'right' => array(
        'field' => 'tid',
      ),
    ),
    'filters' => array(
      'nat_assigned_term' => array(
        'name' => t('NAT: Assigned Term'),
        'field' => 'nid',
        'operator' => array(
          '=' => t('Equals'),
        ),
        'help' => t('This allows you to filter nodes based on term assigned from node.'),
      ),
    ),
  );
  return $tables;
}