This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

what do %d and %s variables mean in SQL queries?

I've tried searching drupal.org, but becasue %d and %s are less than 3 characters, they are not search-indexed :P

I'm just trying to figure out how to modify SQL SELECT queries ... and these seem important :)

Please can anyone tell me (or point me to useful info on) how they work & what they represent ?

problem about hook_search

I copied these code into my module.

http://api.drupal.org/api/5/function/hook_search

but it said that node_access_join_sql() was not available, so I changed it to _node_access_join_sql().

And I got another error message like this:

extend upload.module for zip file handling

Hello,

I was looking to extend the preparation (_upload_prepare function ) of the upload module for zip files.

I would like to be able to attach a zip file to the file attachments of a node and when the 'attach' button is pressed then the zipfile gets unpacked on the server and all individual files are being listed in the file attachments.

So imagine somebody attaches a zip file with 2 pictures (a.jpg and b.jpg), presses the 'attach' button then he would need to see the 2 pictures a.jpg and b.jpg seperatly in the new file attachments form.

Need to restrict Hook_NodeApi to specific Content Types

I paid for a developer to create a specialized voting module for me. He completed the work except now the voting widget appears on all content types.

I've successfully ported the module from Drupal 4.7 to 5.x myself at this point. If someone could point me in the right direction on how to code for this and what hook I call, I would be really grateful.

Thanks

Broken links checker

i searched through drupal modules and i was not able to find anything that remotely resembled Dreamweaver's "Check for broken links" feature.

its a feature that scans the page content to find any and all links that are not pointing to an existing/valid page.

I would like everyone's opinion on whether they would like a module like that (or is there a module like that out ?)

custom search questions

The search.module utilizes 3 tables (that I am aware of)

search_index si
search_dataset sd
search_totals. st.

si and sd provide a "type" field currently set to 'node' in my db.

I have custom node types that have been indexed and their search terms are stored in the si table.

All data appears normally for default searches.

My client, however needs a custom search restricted to a specific node type, and a specific search screen for searching these types (not the default tab provided by implementing hook_search)

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions