BasicEditorConfig::modifyButtons
Internal function for adding and removing buttons related to another button
Signature
protected function modifyButtons(string
$name,
integer
$offset,
[integer
$del = 0,
[mixed
$add = NULL]] )
Parameters
$name
—
string
- - the name of the button to modify
$offset
—
integer
- - the offset relative to that button to perform an array_splice at - 0 for before $name, 1 for after
$del
—
integer
- - the number of buttons to remove at the position given by index(string) + offset
$add
—
mixed
- - an array or single item to insert at the position given by index(string) + offset, or null for no insertion
Returns
- boolean
- - true if $name matched a button, false otherwise