You are here

function wf_crm_webform_base::getDrupalFileUrl in Webform CiviCRM Integration 7.4

Same name and namespace in other branches
  1. 7.5 includes/wf_crm_webform_base.inc \wf_crm_webform_base::getDrupalFileUrl()

Fetch the public url of a file in the Drupal file system

Parameters

int $id Drupal file id:

Return value

string|bool: url of file if found

1 call to wf_crm_webform_base::getDrupalFileUrl()
wf_crm_webform_postprocess::fillDataFromSubmission in includes/wf_crm_webform_postprocess.inc
Fill data array with submitted form values

File

includes/wf_crm_webform_base.inc, line 969

Class

wf_crm_webform_base
Class wf_crm_webform_base

Code

function getDrupalFileUrl($id) {
  $file = file_load($id);
  return $file ? file_create_url($file->uri) : FALSE;
}