You are here

function agreement_views_data in Agreement 6

Same name and namespace in other branches
  1. 8.2 agreement.views.inc \agreement_views_data()
  2. 6.2 agreement.module \agreement_views_data()
  3. 7.2 agreement.views.inc \agreement_views_data()
  4. 3.0.x agreement.views.inc \agreement_views_data()

Implementation of hook_views_data().

File

./agreement.module, line 489
agreement.module - Agreement module code

Code

function agreement_views_data() {
  $data = array();
  $data['agreement']['table']['group'] = t('User');
  $data['agreement']['table']['join'] = array(
    'users' => array(
      'left_field' => 'uid',
      'field' => 'uid',
      'type' => 'inner',
    ),
  );
  $data['agreement']['agreed_date'] = array(
    'title' => t('Agreement date'),
    'help' => t('The date the agreement was submitted.'),
    'field' => array(
      'handler' => 'views_handler_field_date',
      'click sortable' => TRUE,
    ),
    'filter' => array(
      'handler' => 'views_handler_filter_date',
    ),
    'sort' => array(
      'handler' => 'views_handler_sort_date',
    ),
  );
  return $data;
}