Needs review
Project:
CCK Fieldgroup Tabs
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 23:14 UTC
Updated:
18 Jan 2010 at 00:00 UTC
Firstly, thanks for the excellent module, very useful!
I've been exploring an issue with adding first/last classes and found that tabs_pre_render_tabset was being called twice.
It no longer needs to be manually called as it is called by drupal_render
The attached patch removes the manual call to tabs_pre_render_tabset and saves the double processing time on form load.
DT
| Comment | File | Size | Author |
|---|---|---|---|
| cck_fieldgroup_tabs.module.patch | 679 bytes | davidwhthomas |
Comments
Comment #1
davidwhthomas commentedSee http://api.drupal.org/api/function/drupal_render/6 for more info
In D5 that bug may have been an issue but is no longer so.
DT
Comment #2
nedjoI reviewed the code and believe the these lines are still needed.
The issue is that, if a theme callback is used, child elements are not themselves passed to drupal_render() and so don't get #pre_render callbacks triggered.