You are here

function ad_actions_send_email_action_before_submit in Advertisement 6.3

Same name and namespace in other branches
  1. 6.2 actions/ad_actions.module \ad_actions_send_email_action_before_submit()
  2. 7 actions/ad_actions.module \ad_actions_send_email_action_before_submit()

Collect action configuration, stored serialized in the database.

File

actions/ad_actions.module, line 131
Enable ad triggers and actions.

Code

function ad_actions_send_email_action_before_submit($form, &$form_state) {
  $params = array(
    'recipient' => $form_state['values']['recipient'],
    'subject' => $form_state['values']['subject'],
    'message' => $form_state['values']['message'],
    'before' => $form_state['values']['before'],
    'disable_notifications' => $form_state['values']['disable_notifications'],
  );
  return $params;
}