Adding functionality to existing module (eg. Audio)

globetrotter - March 3, 2008 - 09:47

Hi

I'm still new to Drupal and am struggling to understand some aspects of the concept.

What is the easiest way to add functionality/fields to an existing module?

For example:
I have the audio module and want to add some custom fields and a rating mechanism to it. We already started to recode the audio module and make a new module based on it.

Is there an easier/better way to do this? I looked into CCK but it seems only to allow creation of new node types and not to extend existing node types.

Any help and hints would be highly appreciated :o)

You can alter existing node

ugerhard - March 3, 2008 - 10:19

You can alter existing node types, even those introduced by other modules, via CCK, so you probably don't need to re-write Audio module.

Thank you for your reply

globetrotter - March 3, 2008 - 16:46

Thank you for your reply :-)

I tried to figure out how to do this but without success... :-(
Could you give me a hint or starting point?

Go to Administer › Content

ugerhard - March 3, 2008 - 17:11

Go to Administer › Content management > Content types > Audio (path admin/content/types/audio) and click on the tab "Add field" that should be there if you have CCK installed (path admin/content/types/audio/add_field). There you can add additional custom fields to your Audio content type.

THANK YOU!!!

globetrotter - March 4, 2008 - 06:21

THANK YOU!!!

 
 

Drupal is a registered trademark of Dries Buytaert.