public function admin_setup_reset_restrict($restricted, $restrict, $action, $row, $obj) { if (in_array($row['real_type'], array('user', 'media'))) { $restricted = true; } return $restricted; }