static function entityTable() { if (!self::$_entityTable) { self::$_entityTable = array('civicrm_contact' => ts('Contact'), 'civicrm_group' => ts('Group')); } return self::$_entityTable; }
/** * Function to process the form * * @access public * * @return void */ public function postProcess() { CRM_ACL_BAO_Cache::resetCache(); if ($this->_action & CRM_Core_Action::DELETE) { CRM_ACL_BAO_EntityRole::del($this->_id); CRM_Core_Session::setStatus(ts('Selected Entity Role has been deleted.'), ts('Record Deleted'), 'success'); } else { $params = $this->controller->exportValues($this->_name); if ($this->_id) { $params['id'] = $this->_id; } $params['entity_table'] = 'civicrm_group'; CRM_ACL_BAO_EntityRole::create($params); } }