You are here

function cmis_browser_browse_form in CMIS API 6

Same name and namespace in other branches
  1. 6.4 cmis_browser/cmis_browser.module \cmis_browser_browse_form()
  2. 6.2 cmis_browser/cmis_browser.module \cmis_browser_browse_form()
  3. 6.3 cmis_browser/cmis_browser.module \cmis_browser_browse_form()
  4. 7.2 cmis_browser/cmis_browser.module \cmis_browser_browse_form()
  5. 7 cmis_browser/cmis_browser.module \cmis_browser_browse_form()

Build form for browsing CMIS respository.

1 string reference to 'cmis_browser_browse_form'
cmis_browser_browse in cmis_browser/cmis_browser.module
Build CMIS repository browse page.

File

cmis_browser/cmis_browser.module, line 25

Code

function cmis_browser_browse_form($form_state) {
  $parts = explode('/', $_GET['q']);
  $path = implode('/', array_slice($parts, 2));
  $form['#theme'] = 'cmis_browser_browse_form';
  $form['browse']['path'] = array(
    '#type' => 'textfield',
    '#title' => t('Path'),
    '#default_value' => '/' . $path,
    '#autocomplete_path' => 'cmis/autocomplete',
    '#size' => 50,
  );
  $form['browse']['submit'] = array(
    '#type' => 'submit',
    '#name' => 'browse',
    '#default_value' => 'Browse',
  );
  return $form;
}