You are here

function globallink_file_entity_get_info in GlobalLink Connect for Drupal 7.7

1 call to globallink_file_entity_get_info()
globallink_send_file_entity_for_translations in globallink_file_entity/globallink_file_entity.inc

File

globallink_file_entity/globallink_file_entity.inc, line 508

Code

function globallink_file_entity_get_info($fid) {
  $query = db_select('file_managed', 'fm')
    ->fields('fm', array(
    'filename',
  ))
    ->condition('fid', $fid, '=');
  $results = $query
    ->execute();
  $arr = new stdClass();
  foreach ($results as $result) {
    $arr = $result;
  }
  return $arr;
}