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

PHP or Drupal?

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.

Thanks.

Not Saving User Hook Data

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?

Email Search Module available

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

Modify a form after the Submit Button

Hey all -

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.

hook_access() problem - I think

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?

Hacking blog.module for permalinks

I have been trying to implement permalinks of style (/blog/2005/04/my-post-title) instead of /node/234 for the blog.module, with little success.

Firstly, this can be achieved using the 'pathauto' module. The problem with this approach is 'pathauto' module generates a url alias for each blog post. The url_alias table is read as a whole for every HTTP request. This means if there are 300 blog posts, then 300 rows will be read for each request from the database! This is inefficient.

Pages

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