Posted By

brownrl on 06/26/13


handler drupal field views custom

Versions (?)

Custom Drupal View Field

 / Published in: PHP


This is a custom field handler for a Drupal view. Sometimes you have two or more fields in a content type and you want to do a test on them to see if both are empty or both full or exclusive and return that as a field.

There are probably ways to do this in the admin/view configuration. However, this code also serves as a general skeleton for just any old custom field handler.

  • Make sure that all files that you make/add to your module that you add to your .info file. If you forget this you will bash your head in later trying to figure WTF this is not working.

Report this snippet  

You need to login to post a comment.