MDL-39088 migrate editor uninstallation to plugin_manager

This commit is contained in:
Petr Škoda
2013-06-27 22:20:35 +02:00
parent 8a953d629f
commit b07526e8de
4 changed files with 14 additions and 47 deletions
+11
View File
@@ -3878,6 +3878,17 @@ class plugininfo_editor extends plugininfo_base {
}
}
/**
* Basic textarea editor can not be uninstalled.
*/
public function is_uninstall_allowed() {
if ($this->name === 'textarea') {
return false;
} else {
return true;
}
}
/**
* Returns the information about plugin availability
*