Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

give better status update on automatic file generation

  • Loading branch information...
commit 2f371f20982c02ca5b2cbe6a7ca5599c9e0f4f54 1 parent 012db19
@jmacwilliams jmacwilliams authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 islandora_bookviewer.install
View
10 islandora_bookviewer.install
@@ -80,6 +80,12 @@ function create_js_callback() {
FILE;
$path = drupal_get_path('module', 'islandora_bookviewer');
$filename = "$path/js/islandora_loader.js";
- file_put_contents($filename, $javascript);
+ $bytes = file_put_contents($filename, $javascript);
+ if ($bytes === FALSE){
+ drupal_error("Failed to create $filename - check the logs and try again");
+ }
+ else {
+ drupal_set_message("Successfully created $filename");
+ }
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.