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

4.6 code, 4.7 database. Damn you SQL! Argh!

Hi there.

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.

Originally my select statement was thus...

How to use autocomplete for an extra field

hello everybody

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 ?

Thank you for any advice.

Nicolas

multiple calls to drupal_get_form

Hi,

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 !

Job Search module

I installed Job Search module, and I enabled the resume module. The main problem was that all user was able to browse in resumes using search field, nevertheless I set up the accesing (Only the recruiters is able to view the resumes, and the else users are able to view and edit own resumes) Indeed, the nonrecruiters clicking in searching result, the acces was denied. But it was disturbing, spoiling the effectivness of searching, and even personal fragments of resumes became public.

Problem with several modules, including OG and GoJoinGo (unable to call form_textarea)

Fatal error: Call to undefined function: form_textarea() in /home/content/f/r/e/freehunter/html/drupal/modules/front.module on line 37

That is the exact error I get. I had a problem with some other module, the PersonalProfile module. Can anyone help me with this?

Can someone please help?: cac_lite error: Invalid argument supplied for foreach()

Can someone please tell me how to correct this cac_lite error? I get it in every site I've put up with the category module. Drupal 4.7. I Disabled taxonomy and taxonomy_access in one site, and still get the error. Thanks!

warning: Invalid argument supplied for foreach() in /var/www/html/drupal/includes/form.inc on line 641

-ron

Pages

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