diff -u b/comment_timer.module b/comment_timer.module --- b/comment_timer.module +++ b/comment_timer.module @@ -303,7 +303,7 @@ ); $field_view_mode_settings = field_view_mode_settings('comment', $comment->node_type); $real_view_mode = $field_view_mode_settings[$view_mode]['custom_settings'] ? $view_mode : 'default'; - $field_info_extra_fields = field_info_extra_fields('comment', 'comment_node_issue', 'display'); + $field_info_extra_fields = field_info_extra_fields('comment', $comment->node_type, 'display'); if ($field_info_extra_fields['comment_time_inclusion']['display'][$real_view_mode]['visible']) { if (comment_access('edit', $comment)) { drupal_add_js('misc/ajax.js'); @@ -316,7 +316,7 @@ } else { $markup = ''; - $markup .= $comment->comment_timer_status ? t('Included in total issue time') : t('Excluded from total issue time'); + $markup .= $comment->comment_timer_status ? t('Included in total node time') : t('Excluded from total node time'); $markup .= ''; $comment->content['links']['comment_timer'] = array( '#theme' => 'links', @@ -337,7 +337,7 @@ */ function comment_timer_status_link_array($comment) { return array( - 'title' => $comment->comment_timer_status ? t('Exclude from issue total time') : t('Include in issue total time'), + 'title' => $comment->comment_timer_status ? t('Exclude from node total time') : t('Include in node total time'), 'href' => 'comment-timer-inclusion-toggle/' . $comment->cid . '/nojs', 'attributes' => array( 'class' => array('use-ajax'),