You are here

function fc_views_data in Field Complete 7

Implements hook_views_data_alter().

Link each entity to the fc table

File

views/fc.views.inc, line 13
Field Complete - Provides field-based completeness for any entity - views.

Code

function fc_views_data() {
  $data['fc']['table']['group'] = t('Field Complete');
  $data['fc']['table']['join'] = array();
  $data['fc']['percentage'] = array(
    'title' => t('Percentage'),
    'help' => t('The Field Completeness of the connected entity as a percentage value.'),
    'field' => array(
      'handler' => 'views_handler_field_numeric',
      'click sortable' => TRUE,
    ),
    'argument' => array(
      'handler' => 'views_handler_argument_numeric',
      'numeric' => TRUE,
    ),
    'filter' => array(
      'handler' => 'views_handler_filter_numeric',
    ),
    'sort' => array(
      'handler' => 'views_handler_sort',
    ),
  );
  return $data;
}