summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--timelinejs.module6
1 files changed, 4 insertions, 2 deletions
diff --git a/timelinejs.module b/timelinejs.module
index 0b2397a..d052910 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -157,13 +157,15 @@ function timelinejs_json($nid) {
function timelinejs_widget($nid = NULL, $width = '960px', $height = '500px') {
// Check parameters.
if ($nid == NULL) {
- drupal_not_found();
+ print t('Page not found');
+ exit;
}
else {
$node = node_load($nid);
if ($node == FALSE) {
- drupal_not_found();
+ print t('Page not found');
+ exit;
}
}