*/
static $_gId = NULL;
+ /**
+ * A boolean determining if you can add options to this group in the GUI
+ *
+ * @var boolean
+ * @static
+ */
+ static $_isLocked = FALSE;
+
/**
* Obtains the group name from url string or id from $_GET['gid'].
* Sets the title.
elseif (!self::$_gName && !empty($_GET['gid'])) {
self::$_gId = $_GET['gid'];
self::$_gName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', self::$_gId, 'name');
+ self::$_isLocked = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_OptionGroup', self::$_gId, 'is_locked');
$breadCrumb = array(
'title' => ts('Option Groups'),
'url' => CRM_Utils_System::url('civicrm/admin/options', 'reset=1'),
'communication_style',
'case_status', 'encounter_medium',
'case_type', 'payment_instrument',
- 'soft_credit_type'
+ 'soft_credit_type', 'website_type'
)
)) {
$this->assign('showIsDefault', TRUE);
if (self::$_gName == 'participant_role') {
$this->assign('showCounted', TRUE);
}
+ $this->assign('isLocked', self::$_isLocked);
$config = CRM_Core_Config::singleton();
if (self::$_gName == 'activity_type') {
$this->assign('showComponent', TRUE);
/**
* Get user context.
*
+ * @param null $mode
+ *
* @return string user context.
*/
function userContext($mode = NULL) {