You are here

function cmis_query_form in CMIS API 6

Same name and namespace in other branches
  1. 6.4 cmis_query/cmis_query.module \cmis_query_form()
  2. 6.2 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.

1 string reference to 'cmis_query_form'
cmis_query_menu in cmis_query/cmis_query.module
Implementation of hook_menu() for CMIS search module.

File

cmis_query/cmis_query.module, line 29
Search functions

Code

function cmis_query_form(&$form_state) {
  if (isset($form_state['storage']['query_result'])) {
    $form['#suffix'] = $form_state['storage']['query_result'];
  }
  $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,
  );
  $cmis_query['cmis_query_submit'] = array(
    '#type' => 'submit',
    '#value' => t('Run'),
    '#submit' => array(
      'cmis_query_form_submit',
    ),
  );
  $form['statement'] = $cmis_query;
  return $form;
}