I have a Views table that simply shows a list of Entities.
Now at the moment, field 'status' just outputs the raw data 0 or 1.
I want this to be rewritten as 'Pending' or 'Approved' respectively.
I've looked at rewrite behaviour but this seems to be limited and my requirements out of the scope. Everywhere people say that adding PHP through the UI is bad practice.
So how do people normally deal with select boxes stored as integers, when displaying the data using Views?
(Maybe there is a hook to create a function in my module that will always rewrite this field wherever it displays in the Drupal system?)