Did you ever need to modify a Drupal 7 CMS node title, for example for SEO purpose?
Here's a simple trick with a hook to use the node title and modify it, prepend or append text to the user entered title before output:
function YOURMODULE_process_page(&$variables) {
// Add prefix / suffix to node titles:
if(!empty($variables['node'])){
switch ($variables['node']->type) {
case 'YOUR-NODE-TYPE-MACHINE-NAME':
$variables['title'] = 'PREFIX ' . $variables['title'] . ' SUFFIX';
break;
}
}
}
hook_preprocess_page does the trick for you.