Codekarate Content

Daily Dose of Drupal Episode #40

Learn how to add theme functions and template files to you Drupal 7 module. This episode builds upon the my_example module created in the last episode and adds in a hook_theme implementation along with simple examples on how to create a theme function and template file in your module.

In this episode you will learn:

  • How to add a hook_theme implementation to you your Drupal 7 module
  • How to add a theme function in your Drupal 7 module
  • How to create a theme template file (.tpl.php file) in your Drupal 7 module
By shane
Mon, 2012-10-29 19:19
Daily Dose of Drupal Episode #39

Printing out straight HTML in your custom modules was so Drupal 6. Learn all about Renderable Arrays in Drupal 7 to make your Drupal 7 pages even more flexible.

In this episode you will learn:

  • The basics of Drupal 7 Renderable Arrays
  • How to implement a simple Renderable Array Drupal 7 example