michel ziobudda morelli wrote:
Hi. For one of my module I need to make a form (no problem) with "name" and "email" textarea data. If a user is logged I can get this data via user_load(), so I want to make this two data readonly in the form. Is this possible ?
Tnx.
Yes. One method is to add an attributes element to your form array. For example:
$form['yourform'] = array('#type' => 'textarea', '#attributes' => array('disabled' => 'disabled'), );
..chrisxj