Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Does anyone have any interest in doing a "rate this story" module that would allow a simple 1-10 rating at the bottom of stories and would show the average?
Or does anyone know of an easy way to write up such a module?
I don't know php otherwise I would do it myself. But I'd be happy to get a book and try and hash it out with someone if anyone else is interested.
I would like to write a few custom modules to extend Drupal so that I may use it for a weekly newspaper. If you're familiar with writing modules, I have some questions below and I would appreciate your expertise. I've also listed a few of the resources that I've stumbled upon incase there are others like me trying to figure modules out.
Thanks - Strayhand
Questions:
How many different types of modules are there, and what are the differences?
In the
"Creating Modules Guide" the author walks you through the creation of a block module, however they also mention node modules. What are the differences between node and block modules, and do other types of modules exist?
How do you create a node module?
There is a brief document titled "Writing a node module", however I was unsuccessful in using this tutorial to create a node module. Is there another node tutorial that goes into the same detail as the block tutorial? Has anyone else successfully used this tutorial to create a node module in Drupal 4.4?
How do you create administrative pages for modules?
The block module tutorial (Creating Modules Guide) produces an administrative page, what are the specific hooks/functions responsible for this?
Do I need to create new database tables for my modules?
If so, what's the best process?
Are these the only hooks that I need to concern myself with?
Have been playing with flexinode - great stuff, seems like it should be in core. I've made a few modifications to my version but not sure whether there is a good way to 'contribute' them (subject to review, since I am a PHP and drupal novice, more a perl/[j]python person).
My changes are mainly to support 'assisted' content submission, where you've got an external
content source application that pops up partially filled in flexinode node creation
pages, including file uploads. Also support for referring to flexinode nodes and fields by name rather than ID in URLs/themes (ie. MyNewType instead of flexinode-1, SomeNewField instead of flexinode_3).
I don't know how to make patches or if this is the right place to do it, so sorry if it's wrong!
In line 282 in filestore2.module, where it says 'ORDER BY f.downloads DESC', it should read 'ORDER BY n.changed DESC', like in the original filestore module. Otherwise the 'top files' and 'latest files' lists are the same...
i´m a new user of drupal from germany. we use the drupal in our LAN.
i added the notify module. i also updated the sql.
but... it doesn´t work :-(
so, is there anything i have to replace or edit in the module? or is there a notify module that isn´t so "hugh". a simple notification if a node was added, would be enough.
THANX FOR YOUR HELP.... and sorry for my english...