You are here

function hosting_client_views_data in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 client/includes/views/hosting_client.views.inc \hosting_client_views_data()
  2. 7.3 client/includes/views/hosting_client.views.inc \hosting_client_views_data()

Implementation of hook_views_data().

File

client/hosting_client.views.inc, line 10
Client module views integration.

Code

function hosting_client_views_data() {
  $data['hosting_client'] = array(
    'table' => array(
      'group' => 'Hosting Client',
      'title' => 'Client',
      'join' => array(
        'node' => array(
          'left_field' => 'vid',
          'field' => 'vid',
        ),
      ),
    ),
    'uname' => array(
      'title' => t('Internal name'),
      'help' => t('The internal name for this client.'),
      'field' => array(
        'handler' => 'views_handler_field',
        'click sortable' => TRUE,
      ),
    ),
  );
  return $data;
}