You are here

function simplenews_subscription_list_export_submit in Simplenews 7

Same name and namespace in other branches
  1. 7.2 includes/simplenews.admin.inc \simplenews_subscription_list_export_submit()

@todo

File

includes/simplenews.admin.inc, line 907
Newsletter admin, subscription admin, simplenews settings

Code

function simplenews_subscription_list_export_submit($form, &$form_state) {
  $form_values = $form_state['values'];

  // Get data for query string and redirect back to the current page.
  $options['query']['states'] = array_filter($form_values['states']);
  $options['query']['subscribed'] = array_filter($form_values['subscribed']);
  $options['query']['newsletters'] = array_keys(array_filter($form_values['newsletters']));
  $form_state['redirect'] = array(
    'admin/people/simplenews/export',
    $options,
  );
}