From caa0151f1e284d18038c44036fe7552a4e8d131b Mon Sep 17 00:00:00 2001 From: Pradeep Nayak Date: Thu, 10 Mar 2016 19:19:53 +0530 Subject: [PATCH] --CRM-18204, remove Create mode, Edit mode, listing mode and HMTL form snippet links if uf group type is not contact --- CRM/UF/Page/Group.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/UF/Page/Group.php b/CRM/UF/Page/Group.php index 932580fb49..43b06697bf 100644 --- a/CRM/UF/Page/Group.php +++ b/CRM/UF/Page/Group.php @@ -357,6 +357,9 @@ class CRM_UF_Page_Group extends CRM_Core_Page { $componentFound = array_diff(array_keys($groupTypes), $contactTypes); if (!empty($componentFound)) { $action -= CRM_Core_Action::ADD; + $action -= CRM_Core_Action::ADVANCED; + $action -= CRM_Core_Action::BASIC; + $action -= CRM_Core_Action::PROFILE; } $ufGroup[$id]['group_type'] = self::formatGroupTypes($groupTypes); -- 2.25.1