Custom Drupal View Field


/ Published in: PHP
Save to your folder(s)

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.

URL: http://www.itsgotto.be

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.