You are here

function relation_add_settings_ajax in Relation add 7

Ajax callback for the bundle type settings form.

See also

relation_add_field_instance_settings_form()

1 string reference to 'relation_add_settings_ajax'
_relation_add_field_instance_settings_form in ./relation_add.module
Process callback for relation_add_field_instance_settings_form().

File

./relation_add.module, line 525
Relation Add module file.

Code

function relation_add_settings_ajax($form, $form_state) {
  return array(
    '#type' => 'ajax',
    '#commands' => array(
      ajax_command_replace("#relation-add-target-bundles", drupal_render($form['instance']['settings']['relation_target_bundles'])),
    ),
  );
}