original_string: public function resetDashboardLayout($idDashboard, $login='')
      {
          $login = $login ? $login : Piwik::getCurrentUserLogin();
  
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);
  
          $layout = $this->dashboard->getDefaultLayout();
  
          $this->model->updateLayoutForUser($login, $idDashboard, $layout);
      }
code: public function resetDashboardLayout($idDashboard, $login='')
      {
          $login = $login ? $login : Piwik::getCurrentUserLogin();
  
          Piwik::checkUserHasSuperUserAccessOrIsTheUser($login);
  
          $layout = $this->dashboard->getDefaultLayout();
  
          $this->model->updateLayoutForUser($login, $idDashboard, $layout);
      }
code_tokens: public function resetDashboardLayout ( $ idDashboard , $ login = '' ) { $ login = $ login ? $ login : Piwik :: getCurrentUserLogin ( ) ; Piwik :: checkUserHasSuperUserAccessOrIsTheUser ( $ login ) ; $ layout = $ this -> dashboard -> getDefaultLayout ( ) ; $ this -> model -> updateLayoutForUser ( $ login , $ idDashboard , $ layout ) ; }
docstring: 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
docstring_tokens: Resets a dashboard to the default widget configuration