You are here

function cmis_field_field_settings in CMIS API 6.3

Same name and namespace in other branches
  1. 6.4 cmis_field/cmis_field.module \cmis_field_field_settings()

Implementation of hook_field_settings()

Parameters

$op - operation:

$field - field beign operated on:

Return value

  • form or settings array dependent on operation

File

cmis_field/cmis_field.module, line 24

Code

function cmis_field_field_settings($op, $field) {
  switch ($op) {
    case 'form':
      $form['cmis_field_rootFolderPath'] = array(
        '#title' => t('Root Directory'),
        '#description' => t('Root folder for CMIS nodes'),
        '#type' => 'textfield',
        '#autocomplete_path' => 'cmis/autocomplete',
        '#default_value' => '/',
      );
      return $form;
    case 'save':
      $settings = array(
        'cmis_field_rootFolderPath',
      );
      return $settings;
    case 'database columns':
      $columns = array(
        'path' => array(
          'type' => 'varchar',
          'length' => 255,
          'not null' => FALSE,
        ),
      );
      return $columns;
  }
}