You are here

function properties_widget_update_js in Dynamic properties 7

AJAX callback that returns the properties widget.

2 string references to 'properties_widget_update_js'
properties_field_widget_form in ./properties.module
Implements hook_field_widget_form().
properties_template_field_attach_form in properties_template/properties_template.module
Implements hook_field_attach_form().

File

./properties.module, line 707
This module provides a dynamic property field that can contain an unlimited number of attribute value pairs.

Code

function properties_widget_update_js($form, $form_state) {
  $field_name = $form_state['triggering_element']['#parents'][0];
  return $form[$field_name];
}