function uninstall($argv) { global $_plugin; global $success; global $error; global $errors; plugin_is_installed($_plugin['name']) or $error = $errors['not_installed']; set_as_uninstalled() or $error = $errors['uninstalling']; $success = $_plugin['name'] . ' was successfully uninstalled'; }
function uninstall() { global $_plugin; global $success; global $error; global $errors; plugin_is_installed($_plugin['name']) or $error = $errors['not_installed']; delete_dir($_plugin['dir']['definitions']) or $error = $errors['delete_dir']; set_as_uninstalled() or $error = $errors['uninstalling']; $success = $_plugin['name'] . ' was successfully uninstalled'; }