function globallink_block_receive_filter_form_submit in GlobalLink Connect for Drupal 7.6
Same name and namespace in other branches
- 7.5 globallink_block/globallink_block_receive.inc \globallink_block_receive_filter_form_submit()
Handles submission of filter form.
File
- globallink_block/
globallink_block_receive.inc, line 190
Code
function globallink_block_receive_filter_form_submit($form, &$form_state) {
$op = isset($form_state['values']['op']) ? $form_state['values']['op'] : '';
switch ($op) {
case t('Filter'):
$_SESSION['globallink_block_receive_filter_language'] = $form_state['values']['language'];
$_SESSION['globallink_block_receive_filter_status'] = $form_state['values']['status'];
$_SESSION['globallink_block_receive_filter_submission'] = $form_state['values']['submission'];
unset($_SESSION['globallink_block_globalLink_arr_last_refreshed']);
break;
case t('Reset'):
$_SESSION['globallink_block_receive_filter_language'] = '';
$_SESSION['globallink_block_receive_filter_status'] = '';
$_SESSION['globallink_block_receive_filter_submission'] = '';
unset($_SESSION['globallink_block_globalLink_arr_last_refreshed']);
break;
}
}