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.
The readme.txt file for the Page_title module offers the actual syntax that needs to be executed in the PHPMyAdmin to add a new table to a database. But in other modules there is no help whatsoever in what to do. I have downloaded the Ping module but find no help at all in creating the tables in my database. Why is this?
I'm working on writing a simple module to authenticate users against an external source. I have a simple implementation of hook_auth working, but I'm trying to solve the following problem: When users are allowed to create account without administrator approval, everything works fine. However, if I try to create an account for them, my module seems to get bypassed.
I've upgraded to 4.7 and now all my custom php/sql code has stopped working.
Looking at how the Db format has changed [ much nicer ] I am not surprised.
Story bodies are now held in the node_revisions table so my previous code which had only to join the the {node} table to the {term_node} table (in order to retrieve bodies based on taxonomy classification) will now have to join with the {node_revisions} table too.
I would like to create a form to retrieve a postal code.
In this form there is 2 fields :
- CityName
- PostalCode
I made an autocomplete field for Cityname, and it works fine. My aim is to auto fill the PostalCode when the user pick up a cityname in the autocomplete cityname list. Any idea how to implement that ?
I am trying to create a table that has a cell with a form element and a submit button in every row. SO my first thought was to just loop over my results from my database, inserting everything i want in the row and inserting the rendered form in the row. But apparantly, the drupal_get _form doesn't like this. It only returns a rendered form at the first loop iteration. I gueess this has something to do with the form id not being unique or stuff...
Does anybody know a way around this ? I could use custom html output i guess... . But I'd rather stick to the form API !