Drupal if field equals a specific value

1
<?php $fielditems = field_get_items('node', $node, 'field_name'); $individualitem = array_shift($fielditems); if
    (($individualitem['value'])==1):?>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This will render HTML Content if you are using a Boolean field type with a Single on/off checkbox widget.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.