Although the integer field type seems to be the best choice for the duration-related fields (
prepTime) in our Recipe content type, it would be nice if 60 minutes was displayed as 1 hour, and 90 minutes was displayed as 1 ½ hours. One way we can make this happen is to develop a custom module to create a custom field formatter that will display the duration related fields of
prepTime as hours, instead of minutes.
Module development is an important building block of the Drupal CMS, and it is helpful to understand that, generally speaking, there are three different types of Drupal modules: