Active
Project:
Content Construction Kit (CCK)
Version:
6.x-2.8
Component:
text.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Nov 2010 at 22:30 UTC
Updated:
13 Nov 2010 at 21:25 UTC
Can anybody tell me how to get the default value of a text field by using API?
Thanks.
Comments
Comment #1
andreiashu commentedhi,
I just did a grep in the CCK directory for all the functions that contain 'default' in their name and this one seems to be useful for you: sites/all/modules/cck/includes/content.crud.inc:
function content_instance_default_values($field_name, $type_name, $widget_type)Let me know if it's working.
Cheers,
Andrei