You are here

function block_upload_ajax_callback in Block Upload 7

Display fields checkboxes depends on selected field.

1 string reference to 'block_upload_ajax_callback'
block_upload_block_configure in ./block_upload.module
Implements hook_block_configure().

File

./block_upload.module, line 518
Block Upload module.

Code

function block_upload_ajax_callback($form, $form_state) {
  $block_upload_id = $form_state['values']['block_upload_id'];
  if (empty($form_state['values']['block_upload_' . $block_upload_id . '_field'])) {
    return;
  }
  $field_name = $form_state['values']['block_upload_' . $block_upload_id . '_field'];
  $field = field_info_field($field_name);
  _block_upload_field_options_form_elements($form, $block_upload_id, $field['type']);
  return $form['config'];
}