You are here

function name_field_create_instance in Name Field 7

Implements hook_field_create_instance().

File

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

Code

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