You are here

function cmis_browser_browse_form in CMIS API 6.4

Same name and namespace in other branches
  1. 6 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()

Implementation of hook_form().

1 string reference to 'cmis_browser_browse_form'
theme_cmis_browser in cmis_browser/cmis_browser.theme.inc

File

cmis_browser/cmis_browser.module, line 93

Code

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