Needs review
Project:
Complete profile
Version:
7.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
10 Aug 2014 at 15:53 UTC
Updated:
10 Aug 2014 at 20:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Silox commentedShowing the field is rather easy; put this code in the complete_profile.pages.inc
Currently trying to set the field when editing information.
Comment #2
Silox commentedActually validating the code is a bit harder. We overwrite the form submit function to trigger a custom function, where we check if the regcode module exists, and hack us a way to be able to use the defined helper function:
1. Change
$form['#submit'][] = 'user_profile_form_submit';to
$form['#submit'][] = 'complete_profile_form_submit';2. Add below
Comment #3
Silox commentedAdded patch