Move $GLOBALS["profile_fields"] to a new file called fields.inc. That file, and profile.module, should live under a new dir called /modules/profile.

This is analogous to event.module.

The benefit is that users don't have to edit a huge complex file to add a field. They will feel safer editing a small fields.inc file.

Comments

moshe weitzman’s picture