Join a custom table on a View I need to join a custom table custom_table on a View my_view.

I have a module created called join_table

The nid is the referential id (the nid is what ties the two table to the view).

Then, I need to take the info the column price in custom_table and be able to display using my Views template.

I'm completely lost.
Example:

/**
 * Implements hook_views_api()
 * @file modulename.module
 */
function modulename_views_api() {
  return array('api' =&gt; 2);
}

/**
 * Implements hook_views_data()
 * @file modulename.views.inc
 */
function modulename_views_data() {
  $data['custom_table']['table']['join']['node'] = array(
    'left_field' =&gt; 'nid',
    'field' =&gt; 'nid',
  );

  $data['custom_table']['price'] = array(
    'title'  =&gt; 'Title',
    'help'   =&gt; 'Help',
    'group'  =&gt; t('Node'),
    'field'  =&gt; array('handler' =&gt; 'views_handler_field'),
    'sort'   =&gt; array('handler' =&gt; 'views_handler_sort'),
    'filter' =&gt; array('handler' =&gt; 'views_handler_filter_string'),
  );

  return $data;
}


Read more info in oficial manual Describing tables to Views