function globallink_file_entity_dashboard_pager_form_submit in GlobalLink Connect for Drupal 7.7
1 string reference to 'globallink_file_entity_dashboard_pager_form_submit'
- globallink_file_entity_dashboard_pager_form in globallink_file_entity/
globallink_file_entity_send.inc
File
- globallink_file_entity/
globallink_file_entity_send.inc, line 158
Code
function globallink_file_entity_dashboard_pager_form_submit($form, &$form_state) {
$op = isset($form_state['values']['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_file_entity_page_count'] = array(
$page_count,
);
return;
}
}