I edited the title of the apply_for_role.module so that when a user is registering so that the text reads "Select the Membership Type" instead of role, and I also changed the selection type from a drop down list to checkboxes and it produces the following error:

warning: Invalid argument supplied for foreach() in /home/thegreat/public_html/community/includes/form.inc on line 1181.

I've had a look where the error is but being very green when it comes to PHP I'm not sure what I should be looking for.

Any ideas?

Comments

Soren Jones’s picture

Of course, I don't advise hacking a module because of the extra work involved in updating. If I knew more about theming I'd advise on the correct route. I don't so....

A couple of lines below where you changed the type to checkboxes, look for:
'#default_value' => '',

and comment it out or delete it.

Cheers,
Soren

Soren Jones’s picture

Title: Editing title produces error » Editing #type produces error
Priority: Critical » Normal

More descriptive title....

GPirie’s picture

Status: Active » Closed (fixed)

Thank you!