Closed (fixed)
Project:
Apply for role
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
11 Jun 2008 at 13:21 UTC
Updated:
12 Jun 2008 at 08:17 UTC
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
Comment #1
Soren Jones commentedOf 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
Comment #2
Soren Jones commentedMore descriptive title....
Comment #3
GPirie commentedThank you!