[development] Get all node fields?

arthur arthur at 24b6.net
Mon Sep 14 16:26:25 UTC 2009


I'm not sure if this is what you're looking for, but if you are using  
CCK, content_fields($field_name = NULL, $content_type_name = NULL)  
maybe of use to you.


On Sep 14, 2009, at 10:34 AM, Jakob Petsovits wrote:

> On Sunday 13 September 2009, Chris Johnson wrote:
>> Can someone suggest a way to get get a list of user-editable* fields
>> in a node of a given content type?
> [snip]
>> *By user-editable, I mean the actual data fields, not the meta-data
>> fields.  I don't want to mess with things like nid, vid, type, uid,
>> status, etc.  Rather, just any field which any module (e.g. CCK)  
>> might
>> have added to a basic node to create a new content type.
> [snip]
>
>> Advice?  Ideas?
>
> I created Field Tool (project/fieldtool) for that sort of  
> "describing field
> properties" task; for upcoming Drupals, you might want to have a  
> look at
> fago's patch at http://drupal.org/node/575508.
>
> Field Tool is probably still not quite where you need it, but it  
> might be the
> closest match that you'll probably find. Maybe you want to check out  
> if it can
> be made to work for your purposes.
>
> Wishes,
>  Jakob
>



More information about the development mailing list