Document functions

This commit is contained in:
Michal Čihař 2013-06-07 09:26:04 +02:00
parent 685f504094
commit d8f09813e1

View File

@ -8,6 +8,9 @@
$messages = array();
$locations = array();
/**
* Processes single advisor message and stores data in global array.
*/
function add_message($rules, $idx, $type) {
global $messages, $locations;
// Get message text
@ -28,6 +31,9 @@ function add_message($rules, $idx, $type) {
}
}
/**
* Prints message at given location as Gettext string for translation.
*/
function print_message($idx) {
global $messages, $locations;
echo "\n";