You are here

function redhen_relation_update_7102 in RedHen CRM 7

Update affiliation and connection status field labels to Active.

File

modules/redhen_relation/redhen_relation.install, line 470
Install, update and uninstall functions for the redhen relations module.

Code

function redhen_relation_update_7102(&$sandbox) {
  $bundles = array(
    REDHEN_RELATION_AFFILIATION,
    REDHEN_RELATION_CONNECTION,
  );
  foreach ($bundles as $bundle) {
    $instance = field_info_instance('relation', REDHEN_RELATION_STATUS_FIELD, $bundle);
    $instance['label'] = 'Active';
    field_update_instance($instance);
  }
}