[development] Making your data act like a field
sfreach at gmail.com
Wed Sep 16 14:33:24 UTC 2009
andrew morton wrote:
> On Wed, Sep 16, 2009 at 10:03 AM, Nancy Wichmann <nan_wich at bellsouth.net> wrote:
>> After reading Eaton's well-written article
>> I tried this in a module I work on. The fields are definitely showing on
>> "Manage fields" in CCK.
>> However, those added fields do not seem to be available to Views. One of the
>> reasons why I am really interested in making this change is so that
>> something like Node Export can see these fields automatically. What more
>> needs to be done to the suggested code to have CCK reflect these fields to
>> other modules?
> All that hook_content_extra_fields() really does is tell CCK about
> other node data so that they can be reweighted using the UI. Views
> support is a whole different animal that's done through
> hook_views_data()... and thorough documentation would make a great
You can find some documentation on Views2, including hook_views_data(),
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development