Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2009 at 12:58 UTC
Updated:
11 Nov 2009 at 13:20 UTC
Hi, I have big node edit page, and need to
a) put all of the cck input fields in table
b) stylize using css - in this case i need to wrap cck fields - including a labels - in
some of them are just "div.form-item" and i'd like to stylize them independently, I don't like a tables, but I think, in this case, this would be the best option
many thanx
Comments
Comment #1
markus_petrux commentedTry using hook_form_alter() and here you can append a #pre_render callback. Also, see drupal_render().
A #pre_render callback at form level gets the $form as its first and unique argument. Then just explore the structure of this data. You can add for example #prefix and #suffix attributes to any element.