You are here

function disqus_views_data_alter in Disqus 7

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

Implements hook_views_data_alter().

File

./disqus.views.inc, line 11
Views integration with the Disqus module.

Code

function disqus_views_data_alter(&$data) {

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