Do I have to create a module for just one _alter function? I want to write a hook_entity_info_alter function. 

Do I have to create a module just for this one function?
No...

All alter hooks are also run for themes, so you don't have to create a module.

e.g.

function MYTHEME_entity_info_alter(&amp;$info) {
  // ...    
}