You are here

function _comment_goodness_get_submitted_string in Comment goodness 7

Returns the proper format of the 'Submitted' string.

Checks if Timeago is used by $date_type and returns the correct 'Submitted' string.

Parameters

$date_type: Date type to check.

Return value

string 'Submitted' string.

See also

_comment_goodness_uses_timeago_format()

2 calls to _comment_goodness_get_submitted_string()
comment_goodness_comment_view in ./comment_goodness.module
Implements hook_comment_view().
comment_goodness_preprocess_comment in ./comment_goodness.module
Implements hook_preprocess_HOOK().

File

./comment_goodness.module, line 764
Comment goodness provides newest to oldest comment sorting

Code

function _comment_goodness_get_submitted_string($date_type) {
  if (_comment_goodness_uses_timeago_format($date_type)) {
    $submitted_string = 'Submitted by !username !datetime';
  }
  else {
    $submitted_string = 'Submitted by !username on !datetime';
  }
  return $submitted_string;
}