Hi,
I've create a module with a custom form in the configuration panel.
Now in my form there are some fields that need to be saved in my DB (created when activating my module). I've searched for a hook that should save the form, but didn't find anything usefull yet.
This is my code for showing the form:
function fb_recommend_form($form, &$form_state){
$form = array();
$form['url'] = array(
'#type' => 'textfield',
'#title' => 'Url to recommend',
'#description' => t('Enter the url of the site that you want to use for the Facebook Recommnendation box'),
'#size' => 50,
'#maxlength' => 255,
'#required' => TRUE
);
$form['height'] = array(
'#type' => 'textfield',
'#title' => t('The height of the Facebook Recommendation box'),
'#description' => t('Enter the desired height (without pixels or px) of the Facebook Recommendation box'),
'#size' => 10,
'#maxlength' => 3,
'#required' => FALSE
);
$form['width'] = array(
'#type' => 'textfield',
'#title' => t('The width of the Facebook Recommendation box'),
'#description' => t('Enter the desired width (without pixels or px) of the Facebook Recommendation box'),
'#size' => 10,
'#maxlength' => 3,
'#required' => FALSE
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Save settings'),
);
return $form;
}