/[drupal]/contributions/modules/game_clock/game_clock.theme.inc
ViewVC logotype

Contents of /contributions/modules/game_clock/game_clock.theme.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Sun Dec 7 21:31:03 2008 UTC (11 months, 2 weeks ago) by aaron
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
File MIME type: text/x-php
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