You are here

function ad_actions_send_email_action_after_submit in Advertisement 6.3

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

Collect action configuration, stored serialized in the database.

File

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

Code

function ad_actions_send_email_action_after_submit($form, &$form_state) {

  // Process the HTML form to store configuration. The keyed array that
  // we return will be serialized to the database.
  $params = array(
    'recipient' => $form_state['values']['recipient'],
    'subject' => $form_state['values']['subject'],
    'message' => $form_state['values']['message'],
    'after' => $form_state['values']['after'],
    'disable_notifications' => $form_state['values']['disable_notifications'],
  );
  return $params;
}