You are here

function filefield_data_value in FileField 6.3

Given an array of data options, dispatch the necessary callback function.

1 call to filefield_data_value()
filefield_handler_field_data::render in views/filefield_handler_field_data.inc

File

./filefield.module, line 509
FileField: Defines a CCK file field type.

Code

function filefield_data_value($key, $value) {
  $info = filefield_data_info();
  if (isset($info[$key]['callback'])) {
    $callback = $info[$key]['callback'];
    $value = $callback($value);
  }
  else {
    $value = check_plain((string) $value);
  }
  return $value;
}