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

  • Home
  • SEARCH
  • 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 5987141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:46:20+00:00 2026-05-22T22:46:20+00:00

I am a newbie in drupal, webform and php. Actually I have installed the

  • 0

I am a newbie in drupal, webform and php. Actually I have installed the drupal-7 with the webform module and I want to modify the text of options i.e. “view” to “create project” and “Results” to “View Projects”…
I searched for solution and I noticed that best option is to create a custom module and use hook_form_alter() to modify, so I have created a custom module. But I dont know how I can modify.

Kindly excuse me if the solution is already there (I could not find it 🙁 )

  • 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-22T22:46:20+00:00Added an answer on May 22, 2026 at 10:46 pm

    “View” and “Results” are actually menu items, which you can modify by implementing hook_menu_alter().

    http://drupal.org/node/483324

    The following code in a custom module (change MODULENAME to the name of your module) will update the “Results” tab without a hitch, however the “View” tab is trickier because that’s the core “view node” menu item. The code below will update this menu item for ALL node types, not just webforms. If you don’t see the changes, clear your cache.

    As far as I know there is no way to alter menu items (“View” in this case) for specific node types. See http://drupal.org/node/754508 for some attempts and discussion.

    function MODULENAME_menu_alter(&$items) {
      // change webform "Results" to "View Projects"
      $items['node/%webform_menu/webform-results']['title'] = t('View Projects');
      // change "View" to "Create Project" - affects *all* node types, not just webforms
      $items['node/%node/view']['title'] = t('Create Project');
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a drupal newbie... I have created a block with View Module to list
I'm a newbie php guy. I have 1 string output from Drupal's date module
I'm a drupal newbie (mean it :) I have a Block, created with View
I'm a Drupal newbie, but have successfully installed it at a CentOS 5.5 Linux,
I'm newbie in drupal... I have a drupal website, and i want to extend
Newbie question... The objective: I intend to have an HTML text input field as
I'm a newbie drupal... I'm working on my first Drupal project. I need to
I'm a drupal newbie... I created my blog post listing page with View. Everything
I'm a Drupal newbie plus I don't have much experience updating code, styles, and
I am a newbie to drupal, and have used cakephp and codeigniter frameworks earlier.

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.