PluginHooks:CleanupPlugin
From StatusNet
[edit] Description
Can be used to cleanup before the execution exits the plugin code.
[edit] Related Code
File: /lib/plugin.php Class: Plugin (The parent of all plugin classes) Code: mainline
[edit] Example
class ExamplePlugin extends Plugin {
onCleanupPlugin() {
unlink("/tmp/plugindata.txt");
// Removes a temporary file
}
}