A Tree House Agency Community

Balance of logic in template files vs modules vs template.php by Marc Ray

In the endeavor to master Drupal themeing we are always trying to strike a balance between template.php and creating modules. Compared to other systems drupal is the master of "more than one way to solve a task". It would be great to hear some possible example or your thoughts on the balance of when code should go in a module or in your template.php file. Specifically what may be the performance or security impacts of each.

Peace
Marc

Post new Comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options