I have a simple module that creates a page when another page is saved with a checkbox field checked.
My code below works well but I have one issue, it runs when the page is trashed as well as saved (creating an erroneous second duplication of the page).
<?
public function init() {
$this->page...