SugarCRM read only field in edit view

How do I make a field in SugarCRM edit view read only?

SugarCRM version >= 6.5

Add below configuration lines to  <sugarcrm root>/custom/Extension/modules/<your module name>/metadata/editviewdefs.php:


'displayParams' => 
     array (
           'field' => 
                array ( 
                     'disabled' => 'disabled',
                ),
     ),



?>