You are here

function og_views_data_og_notifications in Organic groups 6.2

File

modules/og_views/og_views.views.inc, line 546

Code

function og_views_data_og_notifications() {
  $data['og_notifications']['table']['group'] = t('Organic groups');
  $data['og_notifications']['table']['join'] = array(
    'node' => array(
      'left_table' => 'og_uid',
      'left_field' => 'uid',
      'field' => 'uid',
    ),
    'users' => array(
      'left_table' => 'og_uid',
      'left_field' => 'uid',
      'field' => 'uid',
    ),
  );
  $data['og_notifications']['autosubscribe'] = array(
    'title' => t('OG: Notifications autosubscribe'),
    'help' => t('Does member receive email notifications for a group.'),
    'field' => array(
      'handler' => 'og_views_handler_field_autosubscribe',
    ),
    'filter' => array(
      'handler' => 'og_views_handler_filter_autosubscribe',
    ),
  );
  return $data;
}