You are here

function scs_node_selection_submit in Simplenews Content Selection 7

Same name and namespace in other branches
  1. 6.2 scs.pages.inc \scs_node_selection_submit()
  2. 6 scs.pages.inc \scs_node_selection_submit()
1 string reference to 'scs_node_selection_submit'
scs_form_alter in ./scs.module
Implements hook_form_alter()

File

./scs.module, line 360
Select Drupal content to create a newsletter

Code

function scs_node_selection_submit($form, &$form_state) {
  if ($form_state['values']['step'] == 1) {
    $form_state['rebuild'] = TRUE;
    if ($form_state['values']['op'] == t('Sort nodes')) {

      // Next step
      $form_state['scs']['step'] = 2;
    }
  }
  else {
    _scs_nodes_submit($form_state);
  }
}