I am new to PHP and Drupal. I have content type with a type list text field "Infraestructura". The values and labels are these:
- agua | Agua de pozo
- incendios | sistema contra incendios
- electricidad |Electricidad
The quantity options is unlimited, is to say, the user can select unlimited options (Checkbox)
How I do to change the output for this field as image?
I need that output for this field show an image , example:
- for: agua | agua =>
<img src ="images/agua.jpg">
- for: incendios | sistema contra incendios =>
<img src ="images/incendios.jpg">
- for: electricidad |Electricidad =>
<img src ="images/electricidad.jpg">
I'm thinking to do this using preprocess, but I not have idea. Could anyone help me please?
Here is another way to explain what I want to do: