PDA

View Full Version : inlinemod_dodeleteposts hook is not working


squishi
05-07-2012, 12:10 PM
I have added this in a plugin for the "inlinemod_dodeleteposts" hook:
die('test');
The plugin is active and should be executed when the respective line is reached in inlinemod.php.

However, the plugin is not being run. The execution of the code is not interrupted, the plugin is not executed.
If I add the code below or above the hook line in inlinemod.php, I get the expected result.

So the hook must be disfunctional in vb3.8.7 Patch 2. How can I fix it?

kh99
05-07-2012, 12:36 PM
I tested it and it works as expected. Is that the only code in your plugin? I think if there's other code that has a syntax error then none of it will be executed.

squishi
05-07-2012, 01:52 PM
Interesting. There was other code after the die statement. Once I removed it, it worked.
I did not know that an error will stop the plugin. Good to know.