Document functions
This commit is contained in:
parent
685f504094
commit
d8f09813e1
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user