function simplenews_subscribe_user_action_submit in Simplenews 6
Same name and namespace in other branches
- 6.2 simplenews_action/simplenews_action.module \simplenews_subscribe_user_action_submit()
Process simplenews_subscribe_user_action form submissions.
File
- simplenews_action/
simplenews_action.module, line 221 - simplenews_action.inc Provide actions for simplenews.
Code
function simplenews_subscribe_user_action_submit($form, $form_state) {
$form_values = $form_state['values'];
$params = array(
'tid' => $form_values['newsletter'],
'name' => $form['newsletter']['#options'][$form_values['newsletter']],
);
return $params;
}