mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 07:09:20 +01:00
disable_cells: new param $disable=true to also (re-)enable a cell
This commit is contained in:
parent
40526f9b2b
commit
756062a477
@ -373,11 +373,12 @@
|
||||
* disables all cells with name == $name
|
||||
*
|
||||
* @param sting $name cell-name
|
||||
* @param boolean $disabled=true disable or enable a cell, default true=disable
|
||||
* @return mixed number of changed cells or False, if none changed
|
||||
*/
|
||||
function disable_cells($name)
|
||||
function disable_cells($name,$disabled=True)
|
||||
{
|
||||
return $this->set_cell_attribute($name,'disabled',True);
|
||||
return $this->set_cell_attribute($name,'disabled',$disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user