What is the (best) way to make a div clickable using a render array in code?
I am creating a module that outputs a title in a rounded box, so I use the markup type and specify a class with #prefix and #suffix and apply some css on that class. This gets me a box, but I want to make the box clickable with a different url for each box. What would be a good way to do this?
I could put an onclick in the prefix or put in the prefix and in the suffix. But both are not very pretty.
I'm using Drupal 7 and would like not to use additional modules like views.