コード例 #1
0
ファイル: ops.php プロジェクト: joshuamorse/flava_framework
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';
}
コード例 #2
0
ファイル: ops.php プロジェクト: joshuamorse/flava_framework
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';
}