You are here

function subscriptions_intervals_submit in Subscriptions 5.2

Same name and namespace in other branches
  1. 6 subscriptions.admin.inc \subscriptions_intervals_submit()
  2. 7 subscriptions.admin.inc \subscriptions_intervals_submit()
  3. 2.0.x subscriptions.admin.old.php \subscriptions_intervals_submit()

Sending intervals settings form submit handler.

File

./subscriptions.admin.inc, line 591

Code

function subscriptions_intervals_submit($form_id, $form_values) {
  $intervals = array();
  foreach (explode("\n", $form_values['intervals']) as $line) {
    if ($line) {
      $v = explode('|', $line);
      $intervals[$v[0]] = $v[1];
    }
  }
  variable_set('subscriptions_send_intervals', $intervals);
}