Merge pull request #19498 from eileenmcnaughton/complete_order_test
[civicrm-core.git] / ext / afform / html / afform_html.php
index 8b45581d59a0d1bf5b7bd7f6b9cebe5f346484b3..0b75ec68d24331ed5503deedac9045c9be24efc4 100644 (file)
@@ -4,7 +4,7 @@ require_once 'afform_html.civix.php';
 use CRM_AfformHtml_ExtensionUtil as E;
 
 if (!defined('AFFORM_HTML_MONACO')) {
-  define('AFFORM_HTML_MONACO', 'node_modules/monaco-editor/min/vs');
+  define('AFFORM_HTML_MONACO', 'bower_components/monaco-editor/min/vs');
 }
 
 /**
@@ -144,19 +144,3 @@ function afform_html_civicrm_entityTypes(&$entityTypes) {
 function afform_html_civicrm_themes(&$themes) {
   _afform_html_civix_civicrm_themes($themes);
 }
-
-/**
- * Implements hook_civicrm_check().
- */
-function afform_html_civicrm_check(&$messages) {
-  $dir = E::path(AFFORM_HTML_MONACO);
-  if (!file_exists($dir)) {
-    $messages[] = new CRM_Utils_Check_Message(
-      'afform_html_monaco',
-      ts('Afform HTML is missing its "node_modules" folder. Please consult the README.md for current installation instructions.'),
-      ts('Afform HTML: Packages are missing'),
-      \Psr\Log\LogLevel::CRITICAL,
-      'fa-chain-broken'
-    );
-  }
-}