summaryrefslogtreecommitdiff
path: root/timelinejs.module
diff options
context:
space:
mode:
Diffstat (limited to 'timelinejs.module')
-rw-r--r--timelinejs.module16
1 files changed, 15 insertions, 1 deletions
diff --git a/timelinejs.module b/timelinejs.module
index db7034b..1afff83 100644
--- a/timelinejs.module
+++ b/timelinejs.module
@@ -68,6 +68,13 @@ function timelinejs_theme($existing, $type, $theme, $path) {
'lang_js' => NULL,
),
),
+ 'timelinejs_embed' => array(
+ 'template' => 'timelinejs_embed',
+ 'variables' => array(
+ 'nid' => NULL,
+ 'lang' => NULL,
+ ),
+ ),
'timelinejs_json' => array(
'template' => 'timelinejs_json',
'variables' => array('headline', 'date', 'text', 'media', 'events'),
@@ -252,7 +259,7 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') {
$height = '100%';
}
- return theme('timelinejs', array(
+ $output = theme('timelinejs', array(
'nid' => $nid,
'lang' => $language->language,
'width' => $width,
@@ -267,6 +274,13 @@ function timelinejs($nid = NULL, $width = '960px', $height = '600px') {
'font' => variable_get('timelinejs_font', 'Bevan-PotanoSans'),
'library_path' => $library_path,
));
+
+ $output .= theme('timelinejs_embed', array(
+ 'nid' => $nid,
+ 'lang' => $language->language,
+ ));
+
+ return $output;
}
/**