Index: simplenews_scheduler.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplenews_scheduler/simplenews_scheduler.module,v
retrieving revision 1.11.2.4
diff -u -r1.11.2.4 simplenews_scheduler.module
--- simplenews_scheduler.module 16 Sep 2009 08:09:19 -0000 1.11.2.4
+++ simplenews_scheduler.module 20 Sep 2009 13:17:18 -0000
@@ -111,8 +111,10 @@
'#default_value' => $date_str_start,
'#date_type' => DATE_DATETIME,
'#date_format' => 'm-d-Y - H:i',
+ '#date_label_position' => 'none',
'#date_increment' => 1,
'#date_year_range' => '0:+3',
+ '#required' => TRUE,
'#description' => t('Intervals work by creating a new node at the desired time and marking this to be sent,
ensure you have your site timezones configured and user timezone configured.',
array('@site' => url('admin/settings/date-time'), '@user' => url('user/'. $user->uid .'/edit'))),
@@ -131,8 +133,10 @@
'#default_value' => $date_str_stop,
'#date_type' => DATE_DATETIME,
'#date_format' => 'm-d-Y - H:i',
+ '#date_label_position' => 'none',
'#date_increment' => 1,
'#date_year_range' => '0:+3',
+ '#required' => TRUE,
);
$form['simplenews']['schedule']['sched_stop_edition'] = array(
Index: simplenews_scheduler.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/simplenews_scheduler/simplenews_scheduler.install,v
retrieving revision 1.2.2.3
diff -u -r1.2.2.3 simplenews_scheduler.install
--- simplenews_scheduler.install 16 Sep 2009 08:08:46 -0000 1.2.2.3
+++ simplenews_scheduler.install 20 Sep 2009 13:17:17 -0000
@@ -6,7 +6,6 @@
* Install and uninstall functions for the Simplenews Scheduler module.
*/
-
/**
* Implementation of hook_install().
*/
@@ -49,4 +48,15 @@
function simplenews_scheduler_uninstall() {
// Remove tables.
drupal_uninstall_schema('simplenews_scheduler');
+}
+
+/**
+ * Implementation of hook_update_N().
+ */
+function simplenews_scheduler_update_6000() {
+ $ret = array();
+ db_add_field($ret, 'simplenews_scheduler', 'sched_stop', array('type' => 'int', 'length' => 1, 'not null' => TRUE));
+ db_add_field($ret, 'simplenews_scheduler', 'sched_stop_date', array('type' => 'int', 'length' => 11, 'not null' => TRUE, 'default' => 1577923199));
+ db_add_field($ret, 'simplenews_scheduler', 'sched_stop_edition', array('type' => 'int', 'length' => 10, 'not null' => TRUE, 'default' => 0));
+ return $ret;
}
\ No newline at end of file