<?php

$button = [
    "type"      => "button",
    "name"      => "sp_startfolderwizard",
    "label"     => "LBL_SP_START_FOLDER_WIZARD",
    "css_class" => "btn-primary",
    "events"    => [
        "click" => "button:sp_startfolderwizard:click"
    ]
];

array_unshift($viewdefs["SP_TemplateFolders"]["base"]["view"]["list-headerpane"]["buttons"], $button);
array_splice($viewdefs["SP_TemplateFolders"]["base"]["view"]["list-headerpane"]["buttons"], 1, 1);
