Once our field requirements become complex, we will find ourselves having to resort to modifying the field to meet our needs. As with most things Drupal, template functions and files are where these modifications usually reside.
In this recipe, we will look at modifying the output of the Phone field in the company node type to use an unordered list when there are multiple items present.
We will be using the myzen theme created earlier in this book, to hold our theme customizations. Following the recommendations outlined in earlier chapters, we will also be making use of the Devel and Theme developer modules to assist in identifying the theme functions and templates to override. It is assumed that these modules are installed and enabled.
To get an idea of the work at hand, navigate to a sample company node and view the markup of a Phone field with multiple values. The HTML should look something like the following:
<div class="field field...