You are here

function subscriptions_views_tables in Subscriptions 5

File

./subscriptions.module, line 1527

Code

function subscriptions_views_tables() {
  $tables['subscriptions'] = array(
    'name' => 'subscriptions',
    'provider' => 'internal',
    'join' => array(
      'left' => array(
        'table' => 'node',
        'field' => 'nid',
      ),
      'right' => array(
        'field' => 'sid',
      ),
    ),
    'filters' => array(
      'sid' => array(
        'field' => 'uid',
        'name' => 'Subscriptions: Subscribed User',
        'operator' => 'views_handler_operator_eqneq',
        'list' => 'views_handler_filter_usercurrent',
        'list-type' => 'select',
        'help' => t('Combine this with "Node: Type" to find nodes of that type that logged in user is subscribed to'),
      ),
    ),
  );
  return $tables;
}