You are here

function name_field_delete_instance in Name Field 7

Implements hook_field_delete_instance().

File

./name.module, line 1640
Defines an API for displaying and inputing names.

Code

function name_field_delete_instance($instance) {
  if ($instance['entity_type'] == 'user' && !empty($instance['settings']['name_user_preferred'])) {
    variable_set('name_user_preferred', '');
  }
}