How to create a CCK formatter Categories CCK formatters are pieces of code that allow you to render a CCK field content how you want. In Drupal 6 this basicaly means a theme function. As an example, we will build a formatter for the field type 'nodereference' . This type of field, which is part of the standard CCK package, allows you to "reference" a node inside another. The formatter that nodereference has by default, prints a standard link to the referenced node. We are going to give the users other options, allowing them choose if they want the link to open in a new window or, if they have the popups module activated, that it opens in a jQuery modal window. Let's call our module 'formattertest' . Step 1: Declare our CCK formatters &lt;?php /** * Implementation of hook_field_formatter_info(). * * Here we define an array with the options we will provide in display fields page * The array keys will be used later in hook_theme and theme_ */ In this function, you have to return an arrays of arrays, that define each formatter that the module provides. label: The name that the user will choose in the display fields configuration page field types: an array with the types of cck fields that the formatter supports. It's important to remember that the array keys you use, in our case 'newwindow' and 'popup' , will be used later on to construct our functions hook_theme and theme_ . Note that in