<?php
/* 
= Remove edit screen media buttons
* WordPress: 3.3.1
* Version: 1.0
* URL: elbone.com.au
* Files: functions.php
*/

// Remove media buttons for non-admins
add_action('admin_head','elbone_remove_media_buttons');
if (!function_exists('elbone_remove_media_buttons')) {
    function elbone_remove_media_buttons() {
        if(!(current_user_can('administrator'))) {
		    remove_action('media_buttons', 'media_buttons');
	    }
    }
}