<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
}
}
+ // Add context for the editing of option groups
+ if (isset($extra['option_context'])) {
+ $context = json_encode($extra['option_context']);
+ $element->setAttribute('data-option-edit-context', $context);
+ }
+
return $element;
}