You are here

function scs_admin_content_node_submit in Simplenews Content Selection 6

Same name and namespace in other branches
  1. 6.2 scs.module \scs_admin_content_node_submit()
1 string reference to 'scs_admin_content_node_submit'
scs_form_alter in ./scs.module

File

./scs.module, line 74

Code

function scs_admin_content_node_submit($form, &$form_state) {
  if ($form_state['values']['operation'] == 'scs') {
    $nodes = $form_state['values']['nodes'];
    foreach ($nodes as $key => $selected) {
      if ($selected == 0) {
        unset($nodes[$key]);
      }
    }
    _scs_create_newsletter('', $nodes);
  }
}