Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Right above the "Parameters" section is the following:
Here's an example for $rows: @verbatim $rows = array( // Simple row array( 'Cell 1', 'Cell 2', 'Cell 3' ), // Row with attributes on the row and some of its cells. array( 'data' => array('Cell 1', array('data' => 'Cell 2', 'colspan' => 2)), 'class' => 'funky' ) ); @endverbatim
Presumably this is meant to display as, well, verbatim - kind of hard to read as just text.
Thanks.
Comment | File | Size | Author |
---|---|---|---|
#3 | 669374-D6.patch | 2.19 KB | jhodgdon |
#2 | 669374.patch | 2.24 KB | jhodgdon |
Comments
Comment #1
jhodgdonGood catch! This should be using @code instead of @verbatim.
It's also a problem in the D7 version of this doc, so should be fixed there and then backported to D6.
http://api.drupal.org/api/function/theme_table/7
Comment #2
jhodgdonHere's a patch for Drupal 7. I found one other place in the D7 source using @verbatim.
Comment #3
jhodgdonHere's a Drupal 6 patch. I don't think either of these is in the least bit controversial, so I've set status to RTBC, hope that's OK. If the D7 patch is committed, please change version to D6 so this can be committed there too.
Comment #4
webchickCommitted to HEAD. Marking down to 6.x.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD. Moving to D6.
Comment #6
jhodgdonecho. Wonder which one of you committed this? :)
Comment #7
Gábor HojtsyThanks, committed to Drupal 6 as well.