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
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.