<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.3 |
+ | CiviCRM version 4.4 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2013 |
+--------------------------------------------------------------------+
$optionValue->id = CRM_Utils_Array::value('optionValue', $ids);
$optionValue->save();
+ CRM_Core_PseudoConstant::flush();
return $optionValue;
}
$optionValue = new CRM_Core_DAO_OptionValue();
$optionValue->id = $optionValueId;
if (self::updateRecords($optionValueId, CRM_Core_Action::DELETE)) {
+ CRM_Core_PseudoConstant::flush();
return $optionValue->delete();
}
return FALSE;
$value = $optionValue->value;
// get the proper group name & affected field name
+ // todo: this may no longer be needed for individuals - check inputs
$individuals = array(
'gender' => 'gender_id',
'individual_prefix' => 'prefix_id',
'individual_suffix' => 'suffix_id',
+ 'communication_style' => 'communication_style_id', // Not only Individuals -- but the code seems to be generic for all contact types, despite the naming...
);
$contributions = array('payment_instrument' => 'payment_instrument_id');
$activities = array('activity_type' => 'activity_type_id');