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.
In my new module I've created a page with a callback like module_callback() and in most circumstances this trick has been working when combined with the relevant menu items. However I'm now trying to implement local tasks to a single callback like those on a node with urls of the format ?q=module/pagename/[id]/localtask etc.
I searched the PHP documentation before posting. What exactly does the t('string') function do? I couldn't find it in the PHP Docs and it is used extensively in the Drupal code.
I have a module which inserts fields into the registeration form the hook_user(). I am however finding the data always ends up in the table. Anyone have any ideas as how to make it not save any of the data in the user table from the specific hook implementation?
Terminated request because of suspicious input data.
Trying to post some sample code for an emailsearch module I hacked out of the search.module. Anyone interested in seeing it? http://www.unicoischools.com
I'm currently working on a module (for 4.6) that requires some information to be inserted into form tags after the Submit button. The module is an implementation of WebHashcash (http://www.davidsj.com/webhashcash/), an anti-spam mechanism for the web.
Hi guys, I'm a bit of a n00b at this but I hope you can help.
I found drupal about two weeks ago and have used it to create a site (almost ready) but I have a problem with some Modules I've created. My users can create new content but they cant edit their own content, you need node admin to do it. What have I done, my module is based on story and everything works fine except that user CANT edit nodes they have created with my modules (originals modules work fine like 'page').
here are my permisions lines in the review module, do I need something else?