public function resetDashboardLayout($idDashboard, $login='')
    {
        $login = $login ? $login : Piwik::getCurrentUserLogin();

        Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);

        $layout = $this->dashboard->getDefaultLayout();

        $this->model->updateLayoutForUser($login, $idDashboard, $layout);
    }
public function resetDashboardLayout($idDashboard, $login='')
    {
        $login = $login ? $login : Piwik::getCurrentUserLogin();

        Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);

        $layout = $this->dashboard->getDefaultLayout();

        $this->model->updateLayoutForUser($login, $idDashboard, $layout);
    }
public function resetDashboardLayout ( $ idDashboard , $ login = '' ) { $ login = $ login ? $ login : Piwik :: getCurrentUserLogin ( ) ; Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ login ) ; $ layout = $ this -> dashboard -> getDefaultLayout ( ) ; $ this -> model -> updateLayoutForUser ( $ login , $ idDashboard , $ layout ) ; }
Resets a dashboard to the default widget configuration

Note: Only a super user is able to reset dashboards for other users

@param int $idDashboard dashboard id
@param string $login user the dashboard belongs
Resets a dashboard to the default widget configuration