1.20.x user.install | user_update_1000() |
The 'Member for' extra field has moved one level up in the array.
Related topics
File
- modules/
user/ user.install, line 212 - Install, update and uninstall functions for the user module.
Code
function user_update_1000() {
$settings = field_bundle_settings('user', 'user');
if (isset($settings['extra_fields']['display']['summary'])) {
$settings['extra_fields']['display']['member_for'] = $settings['extra_fields']['display']['summary'];
unset($settings['extra_fields']['display']['summary']);
field_bundle_settings('user', 'user', $settings);
}
}