You are here

function fb_views_views_tables in Drupal for Facebook 5

Same name and namespace in other branches
  1. 5.2 fb_views.module \fb_views_views_tables()

File

./fb_views.module, line 3

Code

function fb_views_views_tables() {

  // The fb_user_app table allows us to associate a node author's uid to a
  // facebook id.
  // Will be present if fb_user.module is used.
  // This might need to be improved to take the apikey into account (for sites that host more than one app.)
  $tables['fb_user_app'] = array(
    'name' => 'fb_user_app',
    'join' => array(
      'left' => array(
        'table' => 'node',
        'field' => 'uid',
      ),
      'right' => array(
        'field' => 'uid',
      ),
    ),
  );
  return $tables;
}