Drupal - Update Statistics label from "read" to "view" and "reads" to "views" As the subject suggests I'm attempting to update the statistics title via a theme_preprocess_node function to read 'views' instead of 'reads':

function mytheme_preprocess_node($variables) {

  $content = $variables['content'];
  // Check the node  type to make sure
  // we have the one we want

  $content['links']['statistics']['#links']['statistics_counter']['title'] = str_replace('reads', 'views', $content['links']['statistics']['#links']['statistics_counter']['title']);
}


This isn't working but I cannot see why. 
I also don't want to use the stringoverrides module as I use 'read' and 'reads' elsewhere on the site.

Thanks
It's because you aren't accepting $variables by reference, so you're just changing a local variable. This will probably do what you want:

function mytheme_preprocess_node(&amp;$variables) {
  $content = &amp;$variables['content'];

  // Check the node  type to make sure
  // we have the one we want

  $content['links']['statistics']['#links']['statistics_counter']['title'] = str_replace('reads', 'views', $content['links']['statistics']['#links']['statistics_counter']['title']);
}