get_help added. Help uses this->meta in most cases.

This commit is contained in:
duergner 2004-09-08 14:38:55 +00:00
parent 9127486894
commit 2f12aba6d3
1 changed files with 16 additions and 0 deletions

View File

@ -390,6 +390,22 @@ class baseModule {
return $partialAccounts;
}
/**
* This function return the help entry array for a specific help id. Normally this->meta can be used.
*
* @param string $id The id string for the help entry needed.
*
* @return array The desired help entry.
*/
function get_help($id) {
if(isset($this->meta['help'][$id])) {
return $this->meta['help'][$id];
}
else {
return false;
}
}
// TODO implement missing interface
}