Can anybody tell me how to get the default value of a text field by using API?

Thanks.

Comments

andreiashu’s picture

hi,

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