profile_admin_delete
- Versions
- 4.6
profile_admin_delete($fid)
Menu callback; deletes a field from all user profiles.
Code
modules/profile.module, line 500
<?php
function profile_admin_delete($fid) {
db_query('DELETE FROM {profile_fields} WHERE fid = %d', $fid);
cache_clear_all();
drupal_set_message(t('The field has been deleted.'));
drupal_goto('admin/settings/profile');
}
?>Login or register to post comments 