* if ($row = $this->find_button($params, 'existingbutton')) { * $this->add_button_after($params, $row, 'newbutton', 'existingbutton'); * } else { * $this->add_button_after($params, $this->count_button_rows($params), 'newbutton'); * } *
* if ($row = $this->find_button($params, 'existingbutton')) { * $this->add_button_before($params, $row, 'newbutton', 'existingbutton'); * } else { * $this->add_button_after($params, $this->count_button_rows($params), 'newbutton'); * } *