Hi Guys,
I am using image module with drupal 5. I have created a link, that will be shown in the Administer->site configuration as "printing Partners". This link shows the setting form, on submitting, this form doesn't return the updated values but shows the default values of the form.
I have created this link in "image_menu" function available in image.module file.
<?php
$items[] = array('title' => t('Printing Partners'),
'path' => 'admin/settings/print_partners',
'callback' => 'drupal_get_form',
'callback arguments' => array('print_partners_admin_settings'),
'access' => user_access('administer site configuration'),
'type' => MENU_NORMAL_ITEM,
'description' => t('Printing Service Settings.'),
);
/////////////////Form function and form submit functions/////////////////////////////////
function print_partners_admin_settings() {
$print_api_res = db_query("SELECT pa.*,pad.* from printing_apis pa, printing_apis_details pad where pa.api_id=pad.api_id and pa.api_id='1'");
$print_api_obj = db_fetch_object($print_api_res);
$refer_id = $print_api_obj->refer_id;
$protocol = $print_api_obj->protocol;
$pid = $print_api_obj->pid;
$psid = $print_api_obj->psid;
$puid = $print_api_obj->puid;