[SOLVED] How use List Plugin php_events (onDeleteRows)?

F.schettino

Italian
Basicly, my question is:
When is it executed? Before or after record is deleted?​

I have to delete a row in an other table when a record is deleted in a List (the current).

If it is executed "before", I need know which record is to delete or (better) the value of a field of the record; how I can get it?
If it is executed "after", I need no information.

I tried php code assuming it is executed "after", but it didn't work.
(The same code works well as Form PHP Plugin).
 
SOLVED

- onDeleteRows is executed before the record is deleted.

- To access records selected to be deleted:
$input = JFactory::getApplication()->input;​
$rows_ids = $input->get('ids', array(), 'array');​
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top