Drupal Auto Content Type to TPL file

Awesome snippet that allows any created content type to be manipulated in a custom tpl.php All the developer must do is name the tpl.php after the machine name of the created content type desired. Ex: page.tpl.php is the standard template file. Drupal API automatically allows for developers to create a custom front page by creating the file page--front.tpl.php Placing this code snippet in your template.php file allows for the creation of tpl.php based on any custom content type. So a custom content type called "Schedule" with the machine name "schedule" would result in the tpl.php file that looks like page--schedule.tpl.php

NOTE: CHANGE "themename" to match your current Theme Name.