Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there,
I am not an expert in drupal.. so, a want to clear a simple doubt..
I see that there is a function l() (small letter L) to generate a link <a> tag in the template. But I want to have this link for a div element which is having inner elements too..
I need to create this:
<a href="/user/login">
<div><div>test</div><span>test test</span></div>
</a>
Can anyone help me on this?
Thanks in advance..
Comments
Comment #1
JKingsnorth CreditAttribution: JKingsnorth commentedHi nissar. This issue queue is for the 'Link' module specifically. You can find more help about using the Drupal core l() function here: https://api.drupal.org/api/drupal/includes%21common.inc/function/l/7