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

Force language change

Hi,

I'd like to force the language change, for instance to switch EN lang to FR, using a Drupal function ...
Is there an issue?

Regards.

Multipage form values

I am building a module for drupal 4.7

In this module there is a form that is spit in 2 parts.
1 is a select box with all the country where user are located.
2 is a select box with all the city's in the country that is selected on page 1.

To do this i used the multipage form like shown on http://drupal.org/node/54753.
In this tutorial the multipage form is nothing more then 3 forms on separated pages. But they could also be on the same page. No differens.

Views newest commentary content which lists in block, can according tothe number of words interruption?

Views newest commentary content which lists in block, can according tothe number of words interruption?
When the commentary content excessively is long, has affected pagelayout ~
What means solution has?

I use newest views edition 4.7.x-1.0

thanks~

problem with birthday module

Well, I'm new in this game and the world of drupal and I'm having some troubles to create a new module. I'm trying to build my own "birthday module". It needs the profile module where you have to create a birthday field. You must insert the id of this field in the settings of my module along with the number of days to look in the past and future.
Actually it works without a problem until I insert a number which result in a day of 1 january or later (47 days from now apparently). Then my block just don't come up as if there are no birthdays to display.
I suppose it has something to do with how I'm creating the dates but I don't see anything wrong:

      // Create today's date, remove the "/" and create a time from the resulting string
      // I use j because days smaller then 10 are stored as one digit
      $today = date('m/j'); 
      list($month,$day) = explode('/', $today); 
      $startTime = mktime(12, 0 , 0, $month, $day); 
   
      // Create the date from when you'll start the search for birthdays
      // also convert from string to time
      $from = date('m/j', $startTime - $daysPast*60*24*60);
      $converFrom = strtotime($from);
   
      // Create the last date to search for birthdays
      // also convert from string to time
      $until = date('m/j', $startTime + $daysFuture*60*24*60);
      $converUntil = strtotime($until);

Sitenews module

I'm working on sitenews module which among other functions has to remove nodes after certain period (hook_cron).

It is possible to issue 'DELETE FROM {...} WHERE ...' queries to remove everything from node, node_revisions, url_alias, sitenews, and maybe other tables. The problem is that I'm not sure if I know all the tables, which should be cleaned. Say, one day I'll decide to allow attachements to sitenews nodes and then I should check attachements table too.

using the default webform module validate and submit functions after redirection

Hello,

I'm using the webforms module and I wanted to know if the default validate and submit functions can be used after the form values are redirected to another url. The reason for this is that when I redirect to another url to deal with the form values they are not stored in the database. Furthermore, no validation is done which allows for submission of blank mandatory fields.

Has anybody run into this situation?

Thanks a lot!

Pages

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