function jst_clock_show in Javascript Timer 7
Same name and namespace in other branches
- 8 widgets/jst_clock.module \jst_clock_show()
- 6 widgets/jst_clock.module \jst_clock_show()
1 string reference to 'jst_clock_show'
- jst_clock_jstwidget in widgets/
jst_clock.module - Implementation of hook_jstwidget().
File
- widgets/
jst_clock.module, line 304 - Embeddable clock widget (optional).
Code
function jst_clock_show($widget_args) {
$output = '<span class="jst_clock">';
$valid_atts = array(
'clock_type',
'size',
);
foreach ($valid_atts as $att) {
if (isset($widget_args[$att])) {
$output .= '<span style="display:none" class="' . $att . '">' . $widget_args[$att] . '</span>';
}
}
$output .= '</span>';
return $output;
}