isEntityModule()) { if(!$module->isUtilityActionEnabled()) return false; } $tabId = $module->getId(); $sql = 'SELECT 1 FROM vtiger_profile2utility WHERE tabid = ? AND activityid = ? LIMIT 1'; $params = array($tabId, $this->getId()); $result = $db->pquery($sql, $params); if($result && $db->num_rows($result) > 0) { return true; } return false; } }