forked from extern/egroupware
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
|
* disables all cells with name == $name
|
||||||
*
|
*
|
||||||
* @param sting $name cell-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
|
* @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