We want to fire a php-snippet on saving a certain resource (saving all other resources should not be affected). Is it ok to use for this purpose a plugin beginning like this and hooked to the event "OnDocFormSave" or is there a better way to realize this:
<?php
if($id!=2113) // id of the resource which should fire the the code on saving this resource
{return;}
else
{our php-code;
return;}
We were not sure if system events need much time and if it is therefore better to install as little system events as possible. Does anybody know this?
Letti