X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ext%2Fafform%2Fhtml%2Fafform_html.php;h=0b75ec68d24331ed5503deedac9045c9be24efc4;hb=6e53dc3f9c16bd5b15cfdb9708b61b1dc0008b3d;hp=8b45581d59a0d1bf5b7bd7f6b9cebe5f346484b3;hpb=e6ac8b253e7c321dc2f5ced965de48b616c20275;p=civicrm-core.git diff --git a/ext/afform/html/afform_html.php b/ext/afform/html/afform_html.php index 8b45581d59..0b75ec68d2 100644 --- a/ext/afform/html/afform_html.php +++ b/ext/afform/html/afform_html.php @@ -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' - ); - } -}