template_preprocess_comment() overrides template.php I try to override this function in my template.php in Drupal 7; I copied the function found on template_preprocess_comment().

The first line contains function themename_preprocess_comment($variables).

It contains the following code, which doesn't work.

$variables['submitted'] = t('!username on !datetime', array('!username' =&gt; $variables['author'], '!datetime' =&gt; $variables['created']));


I clear the cache, I override theme_textarea($variables) and it works.
You need to pass the variable by reference like this using &amp;

function themename_preprocess_comment(&amp;$variables) {