l(t('Edit'), 'node/' . $node->nid . '/webform/components/' . $cid, array('query' => drupal_get_destination())),
I’d like to be able to replace the word “Edit” with an image instead, however when I put an image src in there it shows up as text. Is there a different function I should be using?
I’m using Drupal as my framework.
Thanks ffrom a noob.
That button should have its own class, for example,
action_buttonor an id such asedit_button. Now use CSS to hide the text and use a background image in its place as shown below:EDIT 1:
Change your code with below and use above CSS:
EDIT 2 [FINAL]:
Passing
htmlasTRUEtoarray parameterofl()method can make us able to usefirst parameterasimgtag instead of just text for display as link: