You are here

function fb_views_views_tables in Drupal for Facebook 5.2

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

@file Facebook-specific views arguments, filters, etc...

File

./fb_views.module, line 8
Facebook-specific views arguments, filters, etc...

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',
    'fields' => array(
      'fbu' => array(
        'name' => t('FB: Author Profile Picture'),
        'handler' => 'fb_views_handler_profile_pic',
        'help' => t('Displays the FBML for the node authors profile picture'),
        'sortable' => FALSE,
      ),
    ),
    'join' => array(
      'left' => array(
        'table' => 'node',
        'field' => 'uid',
      ),
      'right' => array(
        'field' => 'uid',
      ),
    ),
  );
  return $tables;
}