From 9998443810c61514741865bf2066bc1caab4708a Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 30 Oct 2012 14:58:33 -0200 Subject: Adding credit and caption for image fields --- timelinejs.module | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'timelinejs.module') diff --git a/timelinejs.module b/timelinejs.module index 4971acb..9e284e0 100644 --- a/timelinejs.module +++ b/timelinejs.module @@ -173,3 +173,7 @@ function timelinejs($nid, $width = '960px', $height = '500px') { function timelinejs_print($nid) { return theme('timelinejs_print', timelinejs_fetch_items($nid, 'print')); } + +function timelinejs_strip($string) { + return str_replace(array("\r\n", "\n", "\r"), '
', str_replace('"', "'", $string)); +} -- cgit v1.2.3