Stepel
Member
Hi all,
I added option to ModerationQueue (one more than, delete, approve, nothing). Its 'moveToTrash'.
I extended ModerationQueueHandler for Post and for Thread. I modified template to add input:radio.
But SAVE BUTTON in Mod Queue call action "actionSave" in ControllerPublic\ModerationQueue.php
There is
and in method saveModerationQueueChanges($queue) i had to add my code lines..to do "moveToTrash" action
It works as I want.. but I don't want to modify core files.. What is the best way to do that ?
replace SAVE BUTTON action by different action and extend more classes ? :/
I added option to ModerationQueue (one more than, delete, approve, nothing). Its 'moveToTrash'.
I extended ModerationQueueHandler for Post and for Thread. I modified template to add input:radio.
But SAVE BUTTON in Mod Queue call action "actionSave" in ControllerPublic\ModerationQueue.php
There is
Code:
$this->_getModerationQueueModel()->saveModerationQueueChanges($queue);
and in method saveModerationQueueChanges($queue) i had to add my code lines..to do "moveToTrash" action
Code:
else if ($change['action'] == 'moveToTrash') {
$handler->moveToTrashModerationQueueEntry($entry['content_id']);
}
It works as I want.. but I don't want to modify core files.. What is the best way to do that ?
replace SAVE BUTTON action by different action and extend more classes ? :/