I want to implement category in simplenews module. For that I wrote the following code in the simplenews,module , function simplenews_form(&$node) {}
$result=db_query("SELECT * FROM {category}");
while ($rs = db_fetch_object($result))
{
$items1[$rs->category_name] = $rs->category_name ;
}
$form['category_name'] = array(
'#title' => t('Select the Category here '),
'#type' => 'select',
'#options' => $items1,
);
How can I access the value selected for category name when I submit this form
It is written in the function "function simplenews_mail_send($mail)"
Please help me how can I access the value of category
I tried $mail-> category_name, $form_values['category_name'] etc which is not working
Thanks in advance
Kumar