Hi, I've managed to add a new button to the edit page but i'm finding it difficult to catch when it's been clicked. I've attached an image with the new publish later button with the name pdp_pub_later, but when I message() the action its always ProcessPageEdit – who would I find out that my new button has been clicked?
public function init() {
$this->addHookAfter("ProcessPageEdit::execute", $this, 'publishLaterAndRedirect');
}
public function publishLaterAndRedirect(HookEvent $e){
$page = $e->page;
$action = $e->action;
$this->message('action:' . $this->process);
}