Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1067897
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:13:00+00:00 2026-05-16T20:13:00+00:00

Drupal has a print link function that I’m using in my .tpl.php <?php print

  • 0

Drupal has a print link function that I’m using in my .tpl.php

<?php
print l(t('Announcement'), 'node/30');
?>

l makes it become a link. Does drupal have an equivalent API function to make buttons?

If not, what’s your best suggestion for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T20:13:00+00:00Added an answer on May 16, 2026 at 8:13 pm

    It comes down to what you mean by ‘button’.

    If you are talking about an actual form button, then you will want to look at the drupal form API for how to go about making forms.

    If you are talking about making something that looks like a button, then I would still be using l(), but pass along something like “class” => “my-fancy-button” to the attributes array, then style the my-fancy-button class with CSS – either simply with a bg colour and some borders, or with a more complicated image background.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a <?php print $search_box; ?> in my page.tpl.php page. On pages that
Drupal is very much a Do Everything CMS. There are modules that allow you
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
If all CMS's (Drupal, MediaWiki) are just a collection of PHP or ASP in
In a custom module for drupal 4.7 I hacked together a node object and
On Drupal 6 using a Zen subtheme, our custom stylesheet is beautiful and perfect
I am working on a project using Drupal 6 (6.11 at the moment, haven't
i'm using drupal 6 and tries to send an email to all users by
Ok, here is something strange that has had me stumped for about 45 minutes...
I have a Drupal set up with CKEditor and CCK, with a custom node

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.