function globallink_block_pager_form_submit in GlobalLink Connect for Drupal 7.7
Same name and namespace in other branches
- 7.5 globallink_block/globallink_block_send.inc \globallink_block_pager_form_submit()
- 7.6 globallink_block/globallink_block_send.inc \globallink_block_pager_form_submit()
Handles submission of pager form.
1 string reference to 'globallink_block_pager_form_submit'
- globallink_block_dashboard_pager_form in globallink_block/
globallink_block_send.inc - Builds form to add pagination to block send dashboard.
File
- globallink_block/
globallink_block_send.inc, line 180
Code
function globallink_block_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_block_page_count'] = array(
$page_count,
);
return;
}
}