function cmis_query_form_submit in CMIS API 7.2
Same name and namespace in other branches
- 6.4 cmis_query/cmis_query.module \cmis_query_form_submit()
- 6 cmis_query/cmis_query.module \cmis_query_form_submit()
- 6.2 cmis_query/cmis_query.module \cmis_query_form_submit()
- 6.3 cmis_query/cmis_query.module \cmis_query_form_submit()
- 7 cmis_query/cmis_query.module \cmis_query_form_submit()
Form submit for cmis_query_form - redirects to put query in url so we can use it on the results page
File
- cmis_query/
cmis_query.module, line 116 - Search functions
Code
function cmis_query_form_submit($form, &$form_state) {
if ($form_state['values']['cmis_query']) {
$form_state['redirect'] = 'cmis/query/' . urlencode(trim($form_state['values']['cmis_query']));
}
else {
$form_state['redirect'] = 'cmis/query';
form_set_error('cmis_query_form', 'Please enter a query');
}
}