What it does is that for each user of the role 'dashboardvisitors' going to the WP admin, it removes the menu items listed in the restricted array. If you list all the admin sections except the dashboard in that array you should have a dashboard only admin.