'help'=>t('This will display the name of the last user to comment on the post.'),
'help'=>t('This will display the name of the last user to comment on the post.'),
),
),
'comment_count'=>array(
'comment_count'=>array(
...
@@ -60,22 +61,58 @@ function comment_views_tables() {
...
@@ -60,22 +61,58 @@ function comment_views_tables() {
),
),
'filters'=>array(
'filters'=>array(
'comment_count'=>array(
'comment_count'=>array(
'name'=>t('Node: Comment Count'),
'name'=>t('Comment: Comment Count'),
'operator'=>'views_handler_operator_gtlt',
'operator'=>'views_handler_operator_gtlt',
'option'=>'integer',
'option'=>'integer',
'help'=>t('This filter allows you to filter by the amount of comments.'),
'help'=>t('This filter allows you to filter by the amount of comments.'),
),
),
'last_comment_timestamp'=>array(
'name'=>t('Comment: Last Comment Time'),
'operator'=>'views_handler_operator_gtlt',
'value'=>views_handler_filter_date_value_form(),
'handler'=>'views_handler_filter_timestamp',
'option'=>'string',
'help'=>t('This filter allows nodes to be filtered by the last comment timestamp. Enter dates in the format: CCYY-MM-DD HH:MM:SS. Enter \'now\' to use the current time. You may enter a delta (in seconds) to the option that will be added to the time; this is most useful when combined with now. If you have the jscalendar module from jstools installed, you can use a popup date picker here.'),
),
),
),
'sorts'=>array(
'sorts'=>array(
'last_comment_timestamp'=>array(
'last_comment_timestamp'=>array(
'name'=>t('Comment: Last Comment Date'),
'name'=>t('Comment: Last Comment Date'),
'help'=>t('This will allow you to sort by the date of the most recent comment on a node.')
'help'=>t('This will allow you to sort by the date of the most recent comment on a node.')
),
),
'comment_count'=>array(
'name'=>t('Comment: Comment Count'),
'help'=>t('This filter allows you to sort by the number of comments.'),