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 7847183
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T17:48:46+00:00 2026-06-02T17:48:46+00:00

I am using drupal 7. First please refer my screen shot to get what

  • 0

I am using drupal 7. First please refer my screen shot to get what i am talking about.
http://www.karya.gisla.in/scr.png

Lets say my content type is article. when we create a article, for authenticated users, the node displayes primary tabs namely : View and Edit. I just want to change/edit it to say :View Article and Edit Article.

Note: Just for a specific content type only. i.e other content type say Page will display as default : View and Edit.

Any ideas how to achieve this.

Any help will be appreciated.

  • 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-06-02T17:48:47+00:00Added an answer on June 2, 2026 at 5:48 pm

    The following code does the trick. Paste it in your themes template.php and change YOURTHEMENAME to… your theme’s name.
    maybe use dpm($vars) in this function to have a look which kinds of information in $vars is. This should help you getting to the point even faster next time.

    [EDIT:]
    Thanks Ben for pointing that out!
    Here’s an updated version:

    function YOURTHEMENAME_preprocess_page(&$vars) {
      if ($vars['node']->type == 'article') {
        foreach($vars['tabs']['#primary'] AS $index => $tab) {
          if($tab['#link']['title'] == t('View')) {
            $vars['tabs']['#primary'][$index]['#link']['title'] = t('View Article');
          }
    
          if($tab['#link']['title'] == t('Edit')) {
            $vars['tabs']['#primary'][$index]['#link']['title'] = t('Edit Article');
          }
        }
      }
    }
    

    Have fun, Martin

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

Sidebar

Related Questions

im using drupal 6.15 and doing my first project in drupal . i got
This is my first time using Drupal and I am loving it, but there
I'm using Restkit to communicate with Drupal CMS. When I'm sending the first request
I am using the Acquia Slate theme. http://drupal.org/project/acquia_slate I've setup my Secondary Menu to
What is the difference between using: $.ajax({ type: 'POST', url: Drupal.settings.basePath + 'module/get/' +
I am investigating using the services module in Drupal 6 to get data from
It is the first time I'm using SSL for a Drupal-based e-commerce shop. I
I've been using Drupal for a long time, and know that it's robust and
I am using Drupal 6.13, Views 6.x-2.6, Voting API 6.x-2.3, Fivestar 6.x-1.18. I have
I am using Drupal for a project but am not sure on the best

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.