Action on Emptying list

mzanotto

New Member
Hi all,
I set a custom action (php code) to be triggered when deleting a row of a list (onAfterDeleteRows event) and it runs well.
I need to run the same action when emptying the whole list but there is no "onEmptyList" event and "onAfterDeleteRows" in not triggered emptying the list.
What can i do ?
Thanks
 
One option would be to use list PHP-plugin.

1) Hide "normal" list empty button (set access to no-one).
2) Add PHP-plugin to your list and set "Button in row" to "No" and "Require checked" to "No".
3) In the "PHP code" field add you code: TRUNCATE TABLE tablename... and your other code you need to run after emptying the table.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top