Skip to main content
You don't need to check first. The function won't do anything if already enabled.
Source Link
Demerit
  • 24.7k
  • 2
  • 12
  • 34

Just callCalling CRM_Core_BAO_ConfigSetting::enableComponent("CiviCase");. It will enable it if not enabled already.

Just call CRM_Core_BAO_ConfigSetting::enableComponent("CiviCase");. It will enable it if not enabled already.

Calling CRM_Core_BAO_ConfigSetting::enableComponent("CiviCase"); will enable it if not enabled already.

Source Link
Demerit
  • 24.7k
  • 2
  • 12
  • 34

Just call CRM_Core_BAO_ConfigSetting::enableComponent("CiviCase");. It will enable it if not enabled already.