Drupal - Get the image path of a CCK field from the fid


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $file = field_file_load($node->website_logo_fid);
  2. $output .= "<p><img src=\"".$file['filepath']."\" alt=\"\" /></p>";

Report this snippet


Comments


You need to login to view comments.