function brainstorm_theme_preprocess_comment in Brainstorm profile 8
Same name and namespace in other branches
- 7 themes/brainstorm_theme/template.php \brainstorm_theme_preprocess_comment()
Implements hook_preprocess_HOOK() for comment.html.twig.
File
- theme/
brainstorm_theme/ brainstorm_theme.theme, line 222 - Process theme data.
Code
function brainstorm_theme_preprocess_comment(&$variables) {
$variables['created'] = date('F d, Y', $variables['elements']['#comment']->created->value);
$variables['submitted'] = t('!username !datetime', array(
'!username' => $variables['author'],
'!datetime' => $variables['created'],
));
}