You are here

function block_upload_get_field_list in Block Upload 7

Returns avaliable field list of filefield type.

Return value

array Field list.

1 call to block_upload_get_field_list()
block_upload_block_configure in ./block_upload.module
Implements hook_block_configure().

File

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

Code

function block_upload_get_field_list() {
  $fields = array();
  foreach (field_info_fields() as $key => $item) {

    // Display only file type fields.
    if ($item['type'] == 'image' || $item['type'] == 'file') {
      $fields[$key] = $item['field_name'];
    }
  }
  return $fields;
}