radioactivity_comment.module in Radioactivity 6
File
plugins/radioactivity_comment.module
View source
<?php
function radioactivity_comment_help($path, $arg) {
$output = '';
switch ($path) {
case "admin/help#radioactivity_comment":
$output = '<p>' . t('This module provides radioactivity support for comments and respective views support. ' . 'This module is not useful by itself as this module provides no sources. ' . 'Consider radioactivity-votingapi or similar source provider for comments.') . '</p>';
break;
}
return $output;
}
function radioactivity_comment_radioactivity_info() {
return array(
'targets' => array(
'comment' => array(),
),
'sources' => array(
'comment' => array(),
),
);
}
function radioactivity_comment_views_api() {
return array(
'api' => 2.0,
);
}
function radioactivity_comment_views_handlers() {
return array(
'handlers' => array(
'radioactivity_comment_views_handler_sort_left_or_inner' => array(
'parent' => 'radioactivity_node_views_handler_sort_left_or_inner',
),
'radioactivity_node_views_handler_sort_left_or_inner' => array(
'parent' => 'views_handler_sort',
),
),
);
}