Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
/admin/structure/heartbeat/plugins/list/activitycomments/edit
The default order persists.
The issue is within one of these two of these files or both...
activitycomments.inc
$form['settings']['heartbeat_comments_order'] = array(
'#title' => t('Select the sort order of the comments'),
'#type' => 'select',
'#options' => array('recent_on_top' => t('Most recent comments on top'), 'oldest_on_top' => t('Oldest comments on top')),
'#default_value' => isset($settings['heartbeat_comments_order']) ? $settings['heartbeat_comments_order'] : 'oldest_on_top',
'#weight' => -5,
);
heartbeat_comments.module
function heartbeat_comments_heartbeat_plugin_info() {
$plugin_names = array();
$plugin_name = new HeartbeatPluginWrapper;
$plugin_name->disabled = FALSE; /* Edit this to true to make a default plugin_name disabled initially */
$plugin_name->api_version = 1;
$plugin_name->plugin_name = 'activitycomments';
$plugin_name->label = 'Comments on activity';
$plugin_name->module = 'heartbeat_comments';
$plugin_name->settings = array(
'attachment' => 1,
'heartbeat_comments_cache' => 0,
'heartbeat_comments_position' => 'up',
'heartbeat_comments_order' => 'oldest_on_top',
'heartbeat_comments_comment_count' => '5',
'heartbeat_comments_node_count' => '6',
'heartbeat_comments_load_more' => 'page',
);
$plugin_names['activitycomments'] = $plugin_name;
return $plugin_names;
}
Any ideas?
Comments
Comment #1
joshuautley CreditAttribution: joshuautley commentedMy apologies this should have been posted for version 7.x-1.0
Comment #2
joshuautley CreditAttribution: joshuautley commentedI have noticed this is fixed in the -dev version.
Comment #3
Stalski CreditAttribution: Stalski commentedIndeed