function jst_timer_get_js_formats in Javascript Timer 8
Same name and namespace in other branches
- 7 widgets/jst_timer.module \jst_timer_get_js_formats()
Get a javascript array encoded list of timer formats.
1 call to jst_timer_get_js_formats()
- jst_timer_jstwidget in widgets/
jst_timer.module - Implementation of hook_jstwidget().
File
- widgets/
jst_timer.module, line 552 - Default widget implementation for an up and down timer. This widget does not use hook_ctwidget as it is always included.
Code
function jst_timer_get_js_formats() {
$js_formats = array();
$formats = jst_timer_get_formats();
foreach ($formats as $f) {
$js_formats[] = "'" . jstimer_clean_for_javascript($f) . "'";
}
return '[' . implode(',', $js_formats) . ']';
}