Drupal - use l or url function for mailto links

前端 未结 3 2106
挽巷
挽巷 2021-02-20 04:44

Does anyone know how to use the l() or url() function to create mailto links?

I am running drupal 6.

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-20 05:21

    A good practice is to use the t() function with strings. Code should be then:

    l(t('Mail me'), 'mailto:jim@hotmail.com', array('absolute' => TRUE));
    

提交回复
热议问题