You are here

function _cmis_browser_block_settings_path_form in CMIS API 7

Same name and namespace in other branches
  1. 6.2 cmis_browser/cmis_browser.content_block.inc \_cmis_browser_block_settings_path_form()
  2. 7.2 cmis_browser/cmis_browser.content_block.inc \_cmis_browser_block_settings_path_form()

Utility function for generating block settings target CMIS paths.

Parameters

$delta:

$value:

1 call to _cmis_browser_block_settings_path_form()
cmis_browser_block_settings_more_items_js in cmis_browser/cmis_browser.content_block.inc
Action that generate more items in the cmis block settings page.

File

cmis_browser/cmis_browser.content_block.inc, line 10

Code

function _cmis_browser_block_settings_path_form($delta, $value = '/') {
  return array(
    '#type' => 'textfield',
    '#title' => t('Target document path @n', array(
      '@n' => $delta + 1,
    )),
    '#default_value' => $value,
    '#description' => t('The document path relative to the root of the repository.'),
    '#autocomplete_path' => 'cmis/autocomplete',
    '#size' => 60,
    '#parents' => array(
      'cmis_target_document_items',
      $delta,
    ),
  );
}