'#description'=>t('Time and day when emails will be moved into spool/sending will start.'),
'#required'=>TRUE
);
if($id!=-1){
$form['reset']=array(
if($id>-1){
$form['timing']['reset']=array(
'#type'=>'checkbox',
'#title'=>t('Reset time'),
'#default_value'=>0,
'#description'=>t("Check if you want to reset timing of this newsletter. If you changed Sequence start time, than this is probbably a good idea.<br />WARNING: Mail will be sent immediatley if timer is reseted and send time is set to past."),
'#default_value'=>$data['reset'],
'#description'=>t("Check if you want to reset timing of this newsletter. If you changed Sequence start time, then this is probbably a good idea.<br />WARNING: Mail will be sent immediatley if timer is reset and send time is set to the past."),
db_query("INSERT INTO {sequenced_newsletter_conf}(tid,name,start_date,last_send,send_interval,sort,status) VALUES('%d','%s','%d','%d','%d','%d','%d')",
$tid,
$name,
$start,
$last_send,
$interval,
$status
);
db_query("UPDATE {sequenced_newsletter} SET sqnid=1");
db_query("DELETE FROM {variable} WHERE name LIKE 'sequenced_newsletter_%%'");