You are here

function cmis_field_field_instance_settings_form in CMIS API 7

Same name and namespace in other branches
  1. 7.2 cmis_field/cmis_field.module \cmis_field_field_instance_settings_form()

Implementation of hook_instance_settings_form()

Parameters

$op - operation:

$field - field beign operated on:

Return value

  • form or settings array dependent on operation

File

cmis_field/cmis_field.module, line 56

Code

function cmis_field_field_instance_settings_form($field, $instance) {
  $settings = $instance['settings'];
  $form['cmis_field_rootFolderPath'] = array(
    '#title' => t('Root Directory'),
    '#description' => t('Root folder for CMIS nodes'),
    '#type' => 'textfield',
    '#default_value' => isset($settings['cmis_field_rootFolderPath']) ? $settings['cmis_field_rootFolderPath'] : '',
  );
  $form['#attached']['js'] = array(
    array(
      'data' => drupal_get_path('module', 'cmis_field') . '/js/cmis_field.js',
    ),
  );
  return $form;
}