I want to require a User to provide a zip code at registration preferably accessable by adding a new field in profile.module. I want to sort users by zip or show locations on GMap. Count on me for $100 contribution toward that.

CommentFileSizeAuthor
#1 location.module.patch1.41 KBcday119

Comments

cday119’s picture

StatusFileSize
new1.41 KB

In order to get users to submit their locations, install the locations module

Then enable it and in the module administration page enable user locations.

Then patch location.module with the patch I have attached. This patch makes the zipcode field required for submission

Basically the location.module includes the location.inc file and in that file their is a function called location_form() wich allows you to specify required fields. The code is on line 231.

bdragon’s picture

Status: Active » Closed (duplicate)