Hide Menu Per Role

I am trying to create a simple plugin for the mu-plugins folder to hide menu for certain roles. I can't seem to get it work on MU.

Here is the code.
(Source: http://www.wprecipes.com/how-to-remove-menus-in-wordpress-dashboard)

function remove_menus () {
global $menu;
if( (current_user_can(‘install_themes’)) ) { $restricted = array(__(‘Links’)); } // check if admin and hide these for admins
else { $restricted = array(__(‘Links’), __(‘Tools’)); } // hide these for other roles
end ($menu);
while (prev($menu)){
$value = explode(‘ ‘,$menu[key($menu)][0]);
if(in_array($value[0] != NULL?$value[0]:”" , $restricted)){unset($menu[key($menu)]);}
add_action(‘admin_menu’, ‘remove_menus’);