bracket_round.inc File Reference
Detailed Description
This file contains the round helper functions for the bracket module
- Author:
- Jim Bullington <jimb@jrbcs.com>
Function Documentation
bracket_round_check_tree |
( |
&$ |
node, |
|
|
$ |
ri, |
|
|
$ |
mi, |
|
|
$ |
comp | |
|
) |
| | |
Check bracket tree starting at given match and competitor Make sure competitor id is properly propagated in bracket tree
- Parameters:
-
| $node | the node object |
| $ri | the round index |
| $mi | the match index |
| $comp | the competitor index |
bracket_round_edit_form |
( |
$ |
form_state, |
|
|
$ |
node, |
|
|
$ |
id | |
|
) |
| | |
bracket_round_first_loser_round |
( |
$ |
node |
) |
|
return the first loser round in the bracket
- Parameters:
-
- Returns:
- the index of first loser round
bracket_round_first_winner_round |
( |
$ |
node |
) |
|
Return the first winner match in the bracket - always one (1)
- Parameters:
-
- Returns:
- the index of first winner round
bracket_round_get_match_index |
( |
$ |
node, |
|
|
$ |
matchid | |
|
) |
| | |
return the indexes to the given match id
- Parameters:
-
| $node | the node object |
| $matchid | the match id to search for |
- Returns:
- round and match indexes as an associative array if the match id was found, otherwise false
bracket_round_last_loser_round |
( |
$ |
node |
) |
|
return the last loser round in the bracket
- Parameters:
-
- Returns:
- the index of last loser round
bracket_round_last_winner_round |
( |
$ |
node |
) |
|
return the last winner round in the bracket
- Parameters:
-
- Returns:
- the index of last winner round
bracket_round_list_form |
( |
$ |
form_state, |
|
|
$ |
node | |
|
) |
| | |
Display list of rounds for the given bracket node