Skip to content

Instantly share code, notes, and snippets.

@allgood2386
Last active February 18, 2016 17:41
Show Gist options
  • Save allgood2386/ebd49246c1367270bbe7 to your computer and use it in GitHub Desktop.
Save allgood2386/ebd49246c1367270bbe7 to your computer and use it in GitHub Desktop.
l(t('Link name you want the user to see'), 'sites/default/files/docs/docname.pdf'); or if the file is an entity (ignore this part if you are confused now) l(t('Link name you want the user to see'), drupal_get_path_alias( 'sites/default/files/docs/docname.pdf'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment