Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用“l()”在 Drupal7 的链接按钮中添加描述。请举例说明。
如果通过描述您的意思是链接的标题,那么请使用以下解决方案。假设你想要一个带有 name 的链接LINK_NAME指向http://<yoursite>/user,下面的行给你同样的。
LINK_NAME
http://<yoursite>/user
l('LINK_NAME', '/user', array('attributes' => array('title' => 'Title'));