You are here

function webfm_get_temp_attachments in Web File Manager 5

2 calls to webfm_get_temp_attachments()
webfm_ajax in ./webfm.module
Ajax post requests
webfm_nodeapi in ./webfm.module
Implementation of hook_nodeapi().

File

./webfm.module, line 2285

Code

function webfm_get_temp_attachments($fids) {
  $files = array();
  $fids_arr = split(',', $fids);
  $file_result = db_query('SELECT * FROM {webfm_file} WHERE fid in (' . webfm_db_placeholders($fids_arr) . ')', $fids_arr);
  while ($file_record = db_fetch_object($file_result)) {
    $_file = new webfm_fdesc($file_record);
    if ($_file->result == TRUE) {
      $files[] = $_file;
    }
  }
  return $files;
}