You are here

function cmis_field_widget_process in CMIS API 6.3

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

Implementation of hook_process()

Parameters

$element - the form element array:

$edit - :

$form_state - form state array:

$form - form array:

Return value

array - form element

1 string reference to 'cmis_field_widget_process'
cmis_field_elements in cmis_field/cmis_field.module
Implementation of hook_elements()

File

cmis_field/cmis_field.module, line 122

Code

function cmis_field_widget_process($element, $edit, $form_state, $form) {
  $defaults = $element['#value'];
  if (!is_array($defaults)) {
    $defaults = unserialize($defaults);
  }
  $element['path'] = array(
    '#type' => 'textfield',
    '#default_value' => $defaults['path'],
    '#autocomplete_path' => 'cmis/autocomplete',
  );
  return $element;
}