I am utilizing the Views module and Drupal 7 and wish to add a category to all rows of my desk which have a sure worth for a sure area.
The sphere is a bit area and is included in my question. I’ve added a PHP area (a separate Views module that’s put in) with the next code:
if ($row->field_kampioen || $row->field_spirit) {
return 'views-table-highlight';
} else {
return '';
}
This could permit me to set the row class to [php]
. This works, however all rows get the css class. After I output this for debugging:
return $row->field_champion . ' ' . $row->field_spirit . ' ';
I see that the lessons are all completely different numbers, and field_champion
is the same as field_spirit
. This makes me assume I am seeing the ID.
How can I get a TRUE
of FALSE
? So, how can I get the precise bit worth of this area?
It could be good if I might do that by way of the Views module solely, however I’ve seen pages the place hooks are used. Possibly I will have to make use of that.