From b5bc1851eb4116539b8f4791e0af657c66f02e31 Mon Sep 17 00:00:00 2001 From: Silvio Date: Mon, 27 May 2013 17:28:30 -0300 Subject: Do not use drupal_not_found() in widgets --- timelinejs.module | 6 ++++-- 1 file 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; } } -- cgit v1.2.3