[drupal-devel] [feature] Add <caption> support to theme_table()

Crell drupal-devel at drupal.org
Mon Sep 5 07:12:21 UTC 2005


Issue status update for 
http://drupal.org/node/30423
Post a follow up: 
http://drupal.org/project/comments/add/30423

 Project:      Drupal
 Version:      cvs
 Component:    theme system
 Category:     feature requests
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Crell
 Updated by:   Crell
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/theme_table_0.patch (1001 bytes)

Well, if I made this patch properly :-), this patch adds a fourth
parameter to the theme_table() function, $caption.  If set, it adds a
<caption>$caption</caption> line to the table.  If it is not set, this
patch has no effect.  All styling is left up to CSS to figure out.  


It seems to me that $caption would make more sense as the 3rd
parameter, before $attributes, but that would break backward
compatibility so I just tacked it on at the end.  I'll leave the final
order of parameters up to someone else to figure out.




Crell




More information about the drupal-devel mailing list