I'm developing a drupal website and I'm using views module to create a block. I'm displaying a view as fields. In my custom module I want to add class name to one view's field if one other field's value is 0.
How to do this?
EDIT*
I found solution to my problem. See my answer below. I didn't mark it as accepted because it actually don't answer my original question how to add the class name programmatically. I'm still interested to know how to do it programmatically so if someone has good answer for me I will mark it as accepted.