I am newbie to Drupal. First, I thank the Drupal developers for providing this excellent software.
As everyone, I am trying to understand the basic way of doing things in Drupal. The is my first problem. I would like to use the Poll module from Drupal, but I just want to make few changes to the existing poll module. Like everyone, I do NOT want to copy the current module code and create a new module and make changes to it. I searched the forum and the best I could sample I could find is 'nodeapi_example.module'. But this module really implements some of the standard hooks, it doesn't really extend an existing mdoule and override few functions. My expectation was, just override the methods which I would like to change. Could somebody explain the concept behind extending a module in Drupal? Please forgive me, if this is already answered in forum. I did search for 'extend module' and I couldn't find any useful answer.
If lets say I want to add one more attribute to the Poll, what is the best way to do this?
1) Should I add the new column to the core poll table or do I create a separate new table and add the new column?
2) if I have to add a new table, then how do I modify the existing sqls to do a join with the core poll table?
Any help is appreciated, Thanks
Comments
+1
+1
-----
Drupal ecommerce, at www.drupalecommerce.com is a new site written using language that Drupal beginners and intermediate users can understand. It has about 300 unfinished pages. Quick links to "Modules," and "Example Sites."
Could anybody help me?
Could anybody help me?
You need to use the hook -
You need to use the hook - form_alter to achieve this functionality.Check api.drupal.org for more info on hooks.
All the best
Searching for "drupal
Searching for "drupal extending poll module" brought me here, but i don't see any relative answers on this page... Even searching on google gives me no answers about how to do it correctly. Same problem with the polls...