How do I make a $form values which is entered in the admin settings appera in its page?
Hi,
Im just trying to undersend module development. What I try to do is add a textarea into mailattach module, so I will be able to insert text or php code. What I did is I added this :
$form['general_settings']['body'] = array(
'#type' => 'textarea',
'#title' => t('Description'),
'#description' => t('Text to be shown as teaser and before the form.'),
'#default_value' => $node->body,
'#cols' => 40,
'#rows' => 10,
'#required' => TRUE,
);
into this function: function mailattach_admin_settings() {...}
Now this field is appearing in the admin settings page actually without the default value.
But the question is how would I call the variable which I access the value entered in this form $form['webform']['body'] ?
Thanks,
Gabor
