diff --git a/client_side_file_crypto.module b/client_side_file_crypto.module index bb8ddf7..a0cfe94 100644 --- a/client_side_file_crypto.module +++ b/client_side_file_crypto.module @@ -46,6 +46,13 @@ function client_side_file_crypto_page_attachments(&$page) { $page['#attached']['drupalSettings']['client_side_file_crypto']['nodeid'] = $nid; $page['#attached']['drupalSettings']['client_side_file_crypto']['baseURL'] = $base_url; $page['#attached']['drupalSettings']['client_side_file_crypto']['routeName'] = $routeName; + if(!file_exists('libraries/client_side_file_crypto/jsencrypt.js')){ + drupal_set_message(t('jsencrypt.js library not in place, please follow instructions on the module page here.'),'error'); + } + if(!file_exists('libraries/client_side_file_crypto/cryptojs.js')){ + drupal_set_message(t('cryptojs.js library not in place, please follow instructions on the module page here.'),'error'); + } + } /**