You are here

function filefield_widget_after_build in FileField 6.3

1 string reference to 'filefield_widget_after_build'
filefield_elements in ./filefield.module
Implementation of hook_elements().

File

./filefield_widget.inc, line 453
This file contains CCK widget related functionality.

Code

function filefield_widget_after_build($element, &$form_state) {

  // Set access on the buttons.
  $element['filefield_upload']['#access'] = empty($element['fid']['#value']);
  $element['filefield_remove']['#access'] = !empty($element['fid']['#value']);
  return $element;
}