function subscriptions_intervals_submit in Subscriptions 2.0.x
Same name and namespace in other branches
- 5.2 subscriptions.admin.inc \subscriptions_intervals_submit()
- 6 subscriptions.admin.inc \subscriptions_intervals_submit()
- 7 subscriptions.admin.inc \subscriptions_intervals_submit()
Sending intervals settings form submit handler.
_state
Parameters
array $form:
File
- ./
subscriptions.admin.old.php, line 965 - Subscriptions module (load-on-demand admin functions).
Code
function subscriptions_intervals_submit(array $form, array &$form_state) {
$intervals = array();
foreach (explode("\n", $form_state['values']['intervals']) as $line) {
if ($line) {
$v = explode('|', $line);
$intervals[$v[0]] = $v[1];
}
}
variable_set('subscriptions_send_intervals', $intervals);
drupal_set_message(t('The changes have been saved.'));
}