You are here

function globallink_node_active_pager_form_submit in GlobalLink Connect for Drupal 7.6

Same name and namespace in other branches
  1. 7.7 globallink_workbench_all_submissions.inc \globallink_node_active_pager_form_submit()
  2. 7.5 globallink_active_submissions.inc \globallink_node_active_pager_form_submit()

Handles submission of pager form.

1 string reference to 'globallink_node_active_pager_form_submit'
globallink_node_active_pager_form in ./globallink_active_submissions.inc
Builds form to add pagination to GlobalLink send dashboard.

File

./globallink_active_submissions.inc, line 175

Code

function globallink_node_active_pager_form_submit($form, &$form_state) {
  $op = $form_state['values']['op'];
  if ($op != t('Go')) {
    return;
  }
  $page_count = $form_state['input']['p_count'];
  if (!is_numeric($page_count) || $page_count < 1) {
    form_set_error('', t('Invalid Page Count.'));
  }
  else {
    $_SESSION['globallink_node_active_page_count'] = array(
      $page_count,
    );
    return;
  }
}