Building a link with l() and t()
There is a bug in your URL snippet (syntax error), so I'm writing the code. 

&lt;?php 
$adopt_me_link_male = l(
  t('Adopt @name', 
    array('@name' =&gt; $node-&gt;field_pet_name['und'][0]['safe_value']), //t() function replacements array
    array('context' =&gt; 'Male pet name') //t() function options array. Not necessary in this case though.
    ),
  'node/163', // l() function - URL
  array(
    'query' =&gt; array(
      'edit[submitted][nameofthepet_webform_fieldset][webform_nume_animal_comp]' =&gt; $node-&gt;field_pet_name['und'][0]['safe_value'],
    ),
    'attributes' =&gt; array(
      'class' =&gt; array('btn', 'btn-primary', 'btn-xs'),
    ),
  )
);

?&gt;


In this example, I changed !name to @name for the security (Read t() function documentation). Also, if you want to use HTML inside the anchor (say, an image), you have to pass 'html' =&gt; TRUE the last parameter array in the l() function (add it along with the attributes and query array keys).