You are here

function views_new_table in Views (for Drupal 7) 5

Helper function to make table creation a little easier. It adds the necessary data to a $table array and returns it.

2 calls to views_new_table()
profile_views_tables in modules/views_profile.inc
This include file implements views functionality on behalf of profile.module
taxonomy_views_tables in modules/views_taxonomy.inc
This include file implements views functionality on behalf of taxonomy.module

File

./views.module, line 1082

Code

function views_new_table($table_name, $provider, $left_table, $left_field, $right_field, $extra = NULL) {
  $table['name'] = $table_name;
  $table['provider'] = $provider;
  $table['join']['left']['table'] = $left_table;
  $table['join']['left']['field'] = $left_field;
  $table['join']['right']['field'] = $right_field;
  if ($extra) {
    $table['join']['extra'] = $extra;
  }
  return $table;
}