This is my code
function find_franchise_menu($may_cache)
{
global $user;
$items = array();
if ($may_cache)
{
$items[] = array('path' => 'admin/settings/business-categories',
'title' => t('Business Categories'),
'callback' => 'system_admin_menu_block_page',
'description' => t('Set up how your site handles categories.'),
'access' => user_access('administer site configuration'));
$items[] = array('path' => 'admin/settings/business-categories/add',
'title' => t('Add Business Categories'),
'callback' => 'add_business_cat',
//'callback arguments' => array('add_business_cat'),
'description' => t('Add Business Categories information is saved and displayed.'),
'access' => user_access('administer site configuration'));
$items[] = array('path' => 'admin/settings/business-categories/edit',
'title' => t('Edit Business Categories'),
'callback' => 'drupal_get_form',
// 'callback arguments' => array('event_admin_timezone_settings'),
'description' => t('Edit Business Categories information is displayed.'),
'access' => user_access('administer site configuration'));
}
return $items;
}
function edit_business_cat()
{
$form = array();
$result=db_query("SELECT * FROM {country}");
$items[0]="Location";
$i=1;
while ($rs = db_fetch_object($result))
{
$items[$i++] = $rs->name;
}
$form['country'] = array(
'#type' => 'select',
'#options' => $items,
);
$result=db_query("SELECT * FROM {category}");
$items1[0]="Category";
$j=1;
while ($rs = db_fetch_object($result))
{
$items1[$j++] = $rs->category_name ;
}
$form['category'] = array(
'#type' => 'select',
'#options' => $items1,
);
$form['invest_amt'] = array(
'#type' => 'select',
'#default_value' => $node->invest_amt,
'#options' => array(
'Personal Investment' => 'Personal Investment',
'Up to $10,000' => 'Up to $10,000',
'Up to $20,000' => 'Up to $20,000',
'Up to $30,000' => 'Up to $30,000',
'Up to $40,000' => 'Up to $40,000',
'Up to $50,000' => 'Up to $50,000',
'Up to $60,000' => 'Up to $60,000',
'Up to $70,000' => 'Up to $70,000',
'Up to $80,000' => 'Up to $80,000',
'Up to $90,000' => 'Up to $90,000',
'Up to $100,000' => 'Up to $100,000',
'Up to $150,000' => 'Up to $150,000',
'Up to $200,000' => 'Up to $200,000',
'Up to $250,000' => 'Up to $250,000',
'Up to $300,000' => 'Up to $300,000',
'Up to $350,000' => 'Up to $350,000',
'Up to $400,000' => 'Up to $400,000',
'Up to $450,000' => 'Up to $450,000',
'Up to $500,000' => 'Up to $500,000',
'Up to $750,000' => 'Up to $750,000',
'$1,000,000 +' => '$1,000,000 +',
),
);
$form['ftype'] = array(
'#type' => 'hidden',
'#title' => t('Email Id'),
'#default_value' => t('category'),
'#maxlength' => 128,
'#required' => TRUE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t(' ')
);
return $form;
}
But on clicking Edit Business Categories , My form is not displaying .. Please Help me
Regards
Kumar