/**
* Implementation of hook_node_form()
- *
- * @todo
- * Date, remind and subscribe widgets.
*/
function node_reminder_form(&$node) {
global $user;
'#date_year_range' => '0:+3',
);
+ $form['interval'] = array(
+ '#type' => 'select',
+ '#title' => t('Interval'),
+ '#options' => array(
+ 'hourly' => t('Hourly'),
+ 'daily' => t('Daily'),
+ 'weekly' => t('Weekly'),
+ 'monthly' => t('Monthly'),
+ 'yearly' => t('Yearly'),
+ 'decreasing' => t('Increasing (you get more reminders over time)'),
+ ),
+ '#default_value' => isset($node->interval) ? $node->interval : 'hourly',
+ '#description' => t('Choose the interval a reminder should be sent to you and all subscribers.'),
+ );
+
$form['reminder_options'] = array(
'#type' => 'fieldset',
'#title' => t('Reminder options'),
'#default_value' => isset($node->secure) ? $node->secure : 0,
);
+ $form['reminder_subscriptions'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Subscribers'),
+ '#description' => t('One valid email address per line.'),
+ '#maxlength' => 100,
+ );
+
return $form;
}