You are here

function pcp_delete_field_requireness in Profile Complete Percent 6.2

Same name and namespace in other branches
  1. 7 pcp.module \pcp_delete_field_requireness()

Called when a user deletes a profile field We then need to delete the pcp value too

1 string reference to 'pcp_delete_field_requireness'
pcp_form_profile_field_delete_alter in ./pcp.module
Implementation of hook_form_FORM_ID_alter().

File

./pcp.module, line 138
Allows users with valid permissions to tag profile fields created from the profile module as required fields for a users profile to be considered complete.

Code

function pcp_delete_field_requireness($form, &$form_state) {
  db_query("DELETE FROM {profile_pcp} WHERE fid = %d", $form_state['values']['fid']);
}