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

Help With TroubleShooting: warnings regarding form.inc

Hi,

I developed a module to accept name, email, city, country, age range and languages spoken. out of these, languages spoken and age range are select boxes ... i have no problem with the age range select box (every entry shows up) but the languages spoken select box is displayed blank and i get a warning:

warning: Invalid argument supplied for foreach() in /home/media/public_html/includes/form.inc on line 671.

Any pointers ??? I hope someone can help me out with this ..

thanks ..

warning: implode() for theme_textarea

I'm getting the following warning when I view a page with a textarea form item:

warning: implode() [function.implode]: Bad arguments. in /var/www/html/sloan51/test/includes/form.inc on line 618.

In my module I have a method that spits out html.

Code to compare paths

Ok, where is the code that I need to compare paths?

I'm developing a module and I want the user to be able to say "this will only happen on the following pages" and they can enter a list of carriage return delimited paths and use * as a wild card. Where is the code I need to say "yeah, this is one of the paths that the user specified"?

Thanks,

Moses

New module is not working!

Hi Guys,

I have got the code of new module and implement on my local machine using the code from this link 'http://www.ibm.com/developerworks/ibm/library/i-osource6/#fig2'. I have created an announcement.info file also for this module.....
For code observation I have put the code of announcement.info file........

announcement.info file.....

Collapsed Categories!?!

Im using Drupal 5.1 and I have Taxonomy showing up in a Node Profile.

These Always show up collapsed and users are missing them all the time. It's a real pain.

I've looked everywhere, but I cant find a way to make them automatically Expanded? What am I missing?

JD

New module is not being shown!

Hi Guys,

I have created a new module, it is working fine on local machine but when I uploaded on the server, it is not being shown in the admin side for activation.
I am not getting understand why it is like this.......
If you want to check the code, I have put it down.

newsite.info file.............

; $Id: newsite.info,v 1.3 2007/08/03 04:33:36 dries Exp $
name = newsite
description = "Enable users to create 'New Site', if the users have no login on this site"
package = "newsite"
version = "5.x-1.x-dev"
project = "newsite"

newsite.module file.....

// $Id: newsite.module,v 1.18 2007/04/24 19:55:09 btmash Exp $
// Selective groups states. chosen by the group admin
define ('nsite_OPEN', 0);
define ('nsite_MODERATED', 1);
define ('nsite_INVITE_ONLY', 2);
define ('nsite_CLOSED', 3);

// visibility states for nodes within groups. site admin chooses in og_settings()
define('nsite_VISIBLE_GROUPONLY', 0);
define('nsite_VISIBLE_BOTH', 1);
define('nsite_VISIBLE_CHOOSE_PUBLIC', 2);
define('nsite_VISIBLE_CHOOSE_PRIVATE', 3);

// site admin chooses in og_settings() whether group creator can put his group on the registration form
define('nsite_REGISTRATION_NEVER', 0);
define('nsite_REGISTRATION_ALWAYS', 1);
define('nsite_REGISTRATION_CHOOSE_TRUE', 2);
define('nsite_REGISTRATION_CHOOSE_FALSE', 3);

Pages

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