Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
How to do that inside the value box using the $row->field_name variable ?!
Thanks.
Comments
Comment #1
sadashiv CreditAttribution: sadashiv commentedYou may use the code as
Hth,
Sadashiv.
Comment #2
W.M. CreditAttribution: W.M. commentedThanks Sadashiv,
Your suggested idea (using trim) did not work using the $row->field_name variable inside Views PHP field, however it did work in another context which is: View header (Global text with php filter enabled) using replacement tokens from first row (that is, via using replacement tokens to generate php variables (to be passed to trim), corresponding to field outputs, from first row).