no buttons in restricted mode

This commit is contained in:
Roland Gruber 2010-09-15 20:03:59 +00:00
parent a9899078c4
commit 877f6db3f3
1 changed files with 5 additions and 0 deletions

View File

@ -530,6 +530,11 @@ class htmlButton extends htmlElement {
* @return array List of input field names and their type (name => type)
*/
function generateHTML($module, $input, $values, $restricted, &$tabindex, $scope) {
if ($restricted) {
// no buttons in restricted mode
logNewMessage(LOG_ERR, 'Meta HTML: Requested button in restricted mode.');
return array();
}
$value = '';
$style = '';
$class = '';