Commit 9f3b6858 authored by aspilicious's avatar aspilicious Committed by tim.plunkett

Issue #1778978 by aspilicious: Cleanup plugin destroy() function.

parent 1c0f9b15
......@@ -131,18 +131,11 @@ public function unpackOptions(&$storage, $options, $definition = NULL, $all = TR
}
}
/**
* Clears a plugin.
*/
public function destroy() {
if (isset($this->view)) {
unset($this->view);
}
if (isset($this->display)) {
unset($this->display);
}
if (isset($this->query)) {
unset($this->query);
}
unset($this->view, $this->display, $this->query);
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment