Customise Title Mark Up from template.php On my site, I have several content types. They all use the same node--content_type.tpl.php file. However, the mark up applied to the node title has to change depending on the content type.

How can I modifying the title according to the content type from template.php?

(I don't want to use too many IF statements in my node.tpl.php file as you are supposed to keep those files clean, so I want the code to go in my template.php file).

(This question is for Drupal 7).
I found the solution to this


Create a field called Title 
Your users use this new field to
    enter a title 
Use Auto Node Title  to automatically title
    the node based on this field.


You can ow hide the original title in your theme and use the new title filed instead. The new title field can be customised like a regular field.