diff --git a/admin/partials/civicrm-ux-admin-display.php b/admin/partials/civicrm-ux-admin-display.php index 69b61d9..00958f8 100755 --- a/admin/partials/civicrm-ux-admin-display.php +++ b/admin/partials/civicrm-ux-admin-display.php @@ -26,6 +26,11 @@ function civicrm_ux_settings_page() { $opt_contribution_ux = Civicrm_Ux::getInstance() ->get_store() ->get_option('civicrm_contribution_ux'); + + $plugin_activation_blocks = Civicrm_Ux::getInstance() + ->get_store() + ->get_option('civicrm_plugin_activation_blocks'); + ?>

CiviCRM UX

@@ -106,6 +111,19 @@ function civicrm_ux_settings_page() { +

Plugin Activation Blocks

+

Prevent the following plugins from being activated.

+ + + + + +
' : '>'; ?> +
diff --git a/includes/class-civicrm-ux-option-store.php b/includes/class-civicrm-ux-option-store.php index 90a40e0..e8cf36b 100644 --- a/includes/class-civicrm-ux-option-store.php +++ b/includes/class-civicrm-ux-option-store.php @@ -31,6 +31,11 @@ public function __construct() { 'is_recur_default' => FALSE, 'is_autorenew_default' => FALSE, ] ); + + // For Plugins we wish to block + $this->register_option( 'civicrm_plugin_activation_blocks', NULL, [ + 'event_tickets' => TRUE, + ] ); } public function register_option( $name, $instance, $default = '' ) {