You are here

function twitter_views_data_alter in Twitter 7.5

Same name and namespace in other branches
  1. 6.5 twitter.views.inc \twitter_views_data_alter()
  2. 6.2 twitter.views.inc \twitter_views_data_alter()
  3. 6.3 twitter.views.inc \twitter_views_data_alter()
  4. 6.4 twitter.views.inc \twitter_views_data_alter()
  5. 7.6 twitter.views.inc \twitter_views_data_alter()
  6. 7.3 twitter.views.inc \twitter_views_data_alter()
  7. 7.4 twitter.views.inc \twitter_views_data_alter()

@todo Please document this function.

See also

https://www.drupal.org/node/1354

File

./twitter.views.inc, line 376
Provide views data and handlers for twitter.module

Code

function twitter_views_data_alter(&$data) {
  $data['users']['table']['join']['twitter'] = array(
    'left_table' => 'twitter_account',
    'left_field' => 'uid',
    'field' => 'uid',
  );
  $data['users']['table']['join']['twitter_account'] = array(
    //    'left_table' => 'twitter_user',
    'left_field' => 'uid',
    'field' => 'uid',
  );
}