You are here

function disqus_views_data_alter in Disqus 6

Same name and namespace in other branches
  1. 7 disqus.views.inc \disqus_views_data_alter()

Implementation of hook_views_data_alter.

File

./disqus.views.inc, line 6

Code

function disqus_views_data_alter(&$data) {

  // Number of Disqus comments made on the given node.
  $data['node']['disqus_comments'] = array(
    'field' => array(
      'title' => t('Disqus: Comments'),
      'help' => t('The number of Disqus comments made on the node. Note that this will not work in the preview.'),
      'handler' => 'views_handler_field_node_disqus_comments',
    ),
  );
}