Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ability for editor-xtd plugin to generate multiple buttons
This creates the ability for an editor-xtd plugin to return an array of buttons, instead of just one button object. ### Testing To test, replace this code in /plugins/editors-xtd/readmore/readmore.php ``` return $button; ``` with: ``` $button2 = new JObject; $button2->modal = false; $button2->class = 'btn'; $button2->onclick = 'alert("Hurray!");return false;'; $button2->text = 'An extra button!'; $button2->name = 'smiley-2'; $button2->link = '#'; return array($button, $button2); ```
- Loading branch information
You removed the && $temp = .. (which allowed to return false etc.)
See issue #9316