function notifications_form_subscribe_confirm_submit in Notifications 6
Same name and namespace in other branches
- 6.2 notifications.pages.inc \notifications_form_subscribe_confirm_submit()
- 6.3 notifications.pages.inc \notifications_form_subscribe_confirm_submit()
Process form submission
File
- ./
notifications.pages.inc, line 242 - User pages for Notifications
Code
function notifications_form_subscribe_confirm_submit($form, &$form_state) {
$subscription = (object) $form_state['values'];
switch ($form_state['values']['op']) {
case t('Subscribe'):
notifications_save_subscription($subscription);
drupal_set_message(t('Your subscription was activated.'));
break;
case t('Cancel'):
drupal_set_message(t('Your subscription was cancelled'));
break;
}
return 'user/' . $subscription->uid . '/notifications';
}