summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-05-27 17:28:30 -0300
committerSilvio <silvio@socioambiental.org>2013-05-27 17:28:30 -0300
commitb5bc1851eb4116539b8f4791e0af657c66f02e31 (patch)
tree8bfd6169d2118166e2c075eddf05fa81c3970637
parent94dcb4ebd3fc3d0562c9c75b3182272c3e2cd2a7 (diff)
downloadtimelinejs-b5bc1851eb4116539b8f4791e0af657c66f02e31.tar.gz
timelinejs-b5bc1851eb4116539b8f4791e0af657c66f02e31.tar.bz2
Do not use drupal_not_found() in widgets
-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;
}
}