Parent Directory
|
Revision Log
|
Revision Graph
Create initial module (aaron).
| 1 | <?php |
| 2 | // $Id$ |
| 3 | |
| 4 | /** |
| 5 | * @file |
| 6 | * Theme functions for the Game Clock module. |
| 7 | */ |
| 8 | |
| 9 | /** |
| 10 | * Prints the number of the current turn. If the game is paused, also indicates that. |
| 11 | * @param $clock |
| 12 | * The machine name of the game clock to display. |
| 13 | */ |
| 14 | function theme_game_clock_block($clock = 'default') { |
| 15 | $state = game_clock_state($clock); |
| 16 | $output = t('Turn: @turn', array('@turn' => $state->turn)); |
| 17 | if (!$state->status) { |
| 18 | $output .= ' <span>'. t('(paused)') .'</span>'; |
| 19 | } |
| 20 | return $output; |
| 21 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |