Skip to content

Instantly share code, notes, and snippets.

View com2's full-sized avatar

com2

  • Comunica2 s. coop.
  • Spain
View GitHub Profile
function myextension_civicrm_customFieldOptions ($fieldID, &$options, $detailedFormat ) {
if ( $fieldID == 51 || $fieldID == 52 || $fieldID == 53 ) {
$result = civicrm_api3('OptionValue', 'get', array(
'return' => "label,name,value",
'option_group_id' => "languages",
'is_active' => 1,
'options' => array('sort' => "weight", 'limit' => 0),
));
$detailed_options=$result['values'];