| 162 |
$block .= t(', %i seconds', array('%i' => $secs_left)); |
$block .= t(', %i seconds', array('%i' => $secs_left)); |
| 163 |
} |
} |
| 164 |
$block .= t(($passed) ? ' since %s.' : ' until %s.', array('%s' => variable_get('countdown_event_name', ''))); |
$block .= t(($passed) ? ' since %s.' : ' until %s.', array('%s' => variable_get('countdown_event_name', ''))); |
| 165 |
if ($accouracy != 'd') { |
if ($accuracy != 'd') { |
| 166 |
$path = drupal_get_path('module', 'countdown'); |
$path = drupal_get_path('module', 'countdown'); |
| 167 |
drupal_add_js($path .'/countdown.js'); |
drupal_add_js($path .'/countdown.js'); |
| 168 |
|
|
| 169 |
$block['content'] .= <<<___EOS___ |
$block .= <<<___EOS___ |
| 170 |
<script type="text/javascript"><!-- |
<script type="text/javascript"><!-- |
| 171 |
init_countdown('$accuracy'); |
init_countdown('$accuracy'); |
| 172 |
// --></script> |
// --></script> |