Reply to comment

Re: Thanks Emily, that was a

I'm glad the article was useful!

You're right, you can define rows using a simple indexed array, but you have to use an associative array if you want to add any html attributes to the row or the cell, like a class, etc. I'm not sure why you weren't able to get the table to render using associative arrays to define the rows. I definitely tested the code before I posted, and it worked for me. I'd recommend you look over the theme_table api documentation - it may shed some light on the problem.

All the best,
Emily

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.