View source
<?php
function disqus_views_data_alter(&$data) {
$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',
),
);
}
function disqus_views_handlers() {
return array(
'info' => array(
'path' => drupal_get_path('module', 'disqus') . '/include',
),
'handlers' => array(
'views_handler_field_node_disqus_comments' => array(
'parent' => 'views_handler_field',
),
),
);
}