Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Oct 2009 at 19:57 UTC
Updated:
16 Oct 2009 at 03:10 UTC
I would like to display comment status, which renders "Read/Write" / "Disabled" / "Read Only". I would like to alter those to "Open" / "Locked" / "Locked", or perhaps even icons (such as in forum software).
Is there a way to change the output of field with PHP input?
Comments
Comment #1
dawehnerNo, but you could override the field handler via hook_views_data_alter
Comment #2
Cory Goodwin commentedThank you.
Comment #3
merlinofchaos commentedFor something this simple you could change the output in the field template. Just compare $output to the value that it is currently and actually print your new value instead. Something like this:
See Theme: Information to determine which template to use.
Comment #4
Cory Goodwin commentedThank you Merlin.