Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save strangerstudios/69285212921ff5a25baddbfebb078b82 to your computer and use it in GitHub Desktop.
Save strangerstudios/69285212921ff5a25baddbfebb078b82 to your computer and use it in GitHub Desktop.
Example of pmprorh_add_registration_field function.
$field = new PMProRH_Field("gender", "select", array("options"=>array("" => "", "male"=>"Male", "female"=>"Female")));
pmprorh_add_registration_field("personal", $field);
$field = PMProRH_Field("company", "text", array("size"=>40, "class"=>"company", "profile"=>true, "required"=>true));
pmprorh_add_registration_field("business", $field);
@sensemonster
Copy link

$field = PMProRH_Field("company", "text", array("size"=>40, "class"=>"company", "profile"=>true, "required"=>true));
should be
$field = new PMProRH_Field("company", "text", array("size"=>40, "class"=>"company", "profile"=>true, "required"=>true));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment