Drupal 7 Tutorial: Creating Custom Formatters with the Field API
by Dan Linn, Technical Lead/Fun Master
Custom formatters are a great way to control the output of your fields. In this tutorial I'm going to use an example that takes a user's Facebook URL as the input and outputs a button of the Admin's choosing, along with an option to open the link in a new window. To get started, we'll need to get a module skeleton sketched out. You'll need to create these two files: facebooklink.info facebooklink.module The first file, facebooklink.info, can be fairly simple: Read More…

