function cmis_query_form in CMIS API 6.4
Same name and namespace in other branches
- 6 cmis_query/cmis_query.module \cmis_query_form()
- 6.2 cmis_query/cmis_query.module \cmis_query_form()
- 6.3 cmis_query/cmis_query.module \cmis_query_form()
- 7.2 cmis_query/cmis_query.module \cmis_query_form()
- 7 cmis_query/cmis_query.module \cmis_query_form()
Render form for searching CMIS respository.
2 string references to 'cmis_query_form'
- cmis_query_form_submit in cmis_query/
cmis_query.module - Form submit for cmis_query_form - redirects to put query in url so we can use it on the results page
- cmis_query_view in cmis_query/
cmis_query.module - Implementation of hook_view()
File
- cmis_query/
cmis_query.module, line 84 - Search functions
Code
function cmis_query_form(&$form_state) {
$cmis_query = array(
'#type' => 'fieldset',
'#title' => t('Search the repository using CMIS SQL 1.0 queries.'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$cmis_query['cmis_query'] = array(
'#type' => 'textarea',
'#title' => t('Query'),
'#size' => 50,
'#default_value' => urldecode(arg(2)),
);
$cmis_query['cmis_query_submit'] = array(
'#type' => 'submit',
'#value' => t('Run'),
);
$form['statement'] = $cmis_query;
return $form;
}