function pmteam_update_7300 in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmteam/pmteam.install \pmteam_update_7300()
Use pm_entity_reference_user_filter for pmteam_user.
File
- pmteam/
pmteam.install, line 114 - Install, uninstall and update functions for the PM Team module.
Code
function pmteam_update_7300() {
$entity_type = 'node';
$field_name = 'pmteam_user';
$bundle_name = 'pmteam';
// Get defaults from the configurations.
// Update Field Base.
module_load_include('inc', 'pmteam', 'includes/pmteam.field_base');
$field_bases = pmteam_default_field_bases();
$field_base = $field_bases[$field_name];
$base_info = array(
'field_name' => $field_name,
'settings' => $field_base['settings'],
);
field_update_field($base_info);
}