i am trying to make a simple module for my clients
in 4.72 Drupal
so my
<?php
/**
* Implementation of hook_form().
*/
function myclient_form(&$node) {
$form['title'] = array('#type' => 'textfield', '#title' => t('Όνομα πελάτι'), '#required' => TRUE, '#default_value' => $node->title, '#weight' => -5);
$form['afm'] = array(
'#type' => 'textfield',
'#title' => t('ΑΦΜ'),
'#default_value' => $node->afm,
'#size' => 9,
'#maxlength' => 9,
'#required' => FALSE, );
$form['contact'] = array(
'#type' => 'fieldset',
'#title' => t('Στοιχεία Επικοινωνίας '),
'#tree' => TRUE,);
$form['contact']['odos'] = array(
'#type' => 'textfield',
'#title' => t('Οδός & Αριθμός'),
'#default_value' => $node->odos,
'#size' => 40,
'#maxlength' => 100,
'#required' => FALSE, );
$form['contact']['city'] = array(
'#type' => 'textfield',
'#title' => t('Πόλη'),
'#default_value' => $node->city,
'#size' => 40,
'#maxlength' => 100,
'#required' => FALSE, );
$form['contact']['tk'] = array(
'#type' => 'textfield',
'#title' => t('Τ.Κ.'),
'#default_value' => $node->tk,
'#size' => 5,
'#maxlength' => 5,
'#required' => FALSE, );
$form['contact']['tel'] = array(
'#type' => 'textfield',
'#title' => t('Τηλ'),
'#default_value' => $node->tel,