/ 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.
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.