/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

joshuautley’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0

My apologies this should have been posted for version 7.x-1.0

joshuautley’s picture

I have noticed this is fixed in the -dev version.

Stalski’s picture

Status: Active » Closed (fixed)

Indeed