Re: [development] Making custom fields available to CCK
function mymodule_content_extra_fields($type_name)
This is EXACTLY what I was looking for. Thank you very much! Is there some API documentation on this? The only thing I've found is this article on Lullabot: http://www.lullabot.com/articles/great-pretender-making-your-data-act-field
You can use hook_field_extra_weights() to reorder fields via the cck manage fields screen like the flag module. You should be able to hook_form_alter a link to your own, custom settings page into that interface as a convenience.
I will definitely look into that. If hook_content_extra_fields() works, then that may not be necessary, but it doesn't hurt to give users more options.
In short, developpers list is for technical discussion, not "basic" questions.
How is that a basic question? -Karl.
I'm sure some brilliant person can remind us both where the site is that implements the API module and includes the most common contributed modules. I have seen it, but lost my bookmark. Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. ________________________________ From: Karl Giesing
function mymodule_content_extra_fields($type_name)
This is EXACTLY what I was looking for. Thank you very much! Is there some API documentation on this? The only thing I've found is this article on Lullabot:
You might like both http://drupalcontrib.org/api/drupal and http://api.lullabot.com On Thu, Jan 27, 2011 at 6:25 PM, nan wich <nan_wich@bellsouth.net> wrote:
I'm sure some brilliant person can remind us both where the site is that implements the API module and includes the most common contributed modules. I have seen it, but lost my bookmark.
*Nancy*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
------------------------------ *From:* Karl Giesing
function mymodule_content_extra_fields($type_name)
This is EXACTLY what I was looking for. Thank you very much!
Is there some API documentation on this? The only thing I've found is this article on Lullabot:
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
That was it! Thanks, Randy. Makes me realize that I should add more comments... Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. ________________________________ From: Randy Fay <randy@randyfay.com> To: development@drupal.org Sent: Thu, January 27, 2011 9:15:43 PM Subject: Re: [development] Making custom fields available to CCK You might like both http://drupalcontrib.org/api/drupal and http://api.lullabot.com On Thu, Jan 27, 2011 at 6:25 PM, nan wich <nan_wich@bellsouth.net> wrote: I'm sure some brilliant person can remind us both where the site is that implements the API module and includes the most common contributed modules. I have seen it, but lost my bookmark.
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
________________________________
From: Karl Giesing
function mymodule_content_extra_fields($type_name)
This is EXACTLY what I was looking for. Thank you very much!
Is there some API documentation on this? The only thing I've found is this article on Lullabot:
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
participants (3)
-
Karl Giesing -
nan wich -
Randy Fay