05-29-2011, 08:33 AM
This patch is allowing developers to get file id from own plugin.
[attachment=0]
Here are changes in methods Plugin_class.php (not included in patch)
[attachment=0]
Here are changes in methods Plugin_class.php (not included in patch)
Code:
/*
* This function is run after a new file is added
*/
function onAfterAdd($fileId) {}
/*
* This function is run before the edit file form is finished being rendered
*/
function onBeforeEditFile($fileId) {}
/*
* This function is run after the user saves and change to a file
*/
function onAfterEditFile($fileId) {}