]> gitweb.fluxo.info Git - drupal/reminder.git/commitdiff
Fixing reminder_parse_subscribers() and TODO
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 31 Oct 2012 16:36:24 +0000 (14:36 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 31 Oct 2012 16:36:24 +0000 (14:36 -0200)
reminder.module

index fdba07cfd2529ab6a9be89e540b7837c2c6bc32d..4a22a212011437ab5f363a176816a76389304a3f 100644 (file)
@@ -252,6 +252,7 @@ function reminder_form(&$node) {
 function reminder_validate($node, $form, &$form_state) {
   if ($form['type']['#value'] == 'reminder') {
     // TODO
+    // valid_email_address()
   }
 }
 
@@ -457,9 +458,12 @@ function reminder_send($nid) {
 
 /**
  * Helper function to parse subscribers.
+ *
+ * @todo
+ *   Ignore blank lines.
  */
 function reminder_parse_subscribers($subscribers) {
-  return explode('\n', $subscribers);
+  return explode("\n", $subscribers);
 }
 
 /**