You are here

function cmis_query_form in CMIS API 6.2

Same name and namespace in other branches
  1. 6.4 cmis_query/cmis_query.module \cmis_query_form()
  2. 6 cmis_query/cmis_query.module \cmis_query_form()
  3. 6.3 cmis_query/cmis_query.module \cmis_query_form()
  4. 7.2 cmis_query/cmis_query.module \cmis_query_form()
  5. 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.pages.inc
Implementation of hook_view()

File

cmis_query/cmis_query.module, line 43
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;
}