You are here

function filefield_data_info in FileField 6.3

Get a list of possible information stored in a file field "data" column.

3 calls to filefield_data_info()
filefield_data_value in ./filefield.module
Given an array of data options, dispatch the necessary callback function.
filefield_handler_field_data::admin_summary in views/filefield_handler_field_data.inc
filefield_handler_field_data::options_form in views/filefield_handler_field_data.inc

File

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

Code

function filefield_data_info() {
  static $columns;
  if (!isset($columns)) {
    $columns = array();
    foreach (module_implements('filefield_data_info') as $module) {
      $function = $module . '_filefield_data_info';
      $data = (array) $function();
      foreach ($data as $key => $value) {
        $data[$key] = $value;
        $data[$key]['module'] = $module;
      }
      $columns = array_merge($columns, $data);
    }
  }
  return $columns;
}