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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:20:59+00:00 2026-05-14T06:20:59+00:00

This week I have figured out how to modify form elements in the location

  • 0

This week I have figured out how to modify form elements in the location module
using form_alter and the custom element hook_elements() : need some tips on Drupal $form value

I was able to to hide elements using unset eg: unset($element['locpick']['user_latitude']);

Also added css with drupal_add_css to hide unwanted groups, and change margins, borders & padding

However, I have a few questions:

  • how can I add additional text header between fields?
  • how can I change input field length?
  • is it possible to move fields around or put them in a table?
  • 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-14T06:20:59+00:00Added an answer on May 14, 2026 at 6:20 am

    Also added css with drupal_add_css to hide unwanted groups

    I highly advise against this. Use the Form API proper to control forms.

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

Sidebar

Related Questions

For customer service week this year, I have the privileged task of creating a
Earlier this week I ask a question about filtering out duplicate values in sequence
On the Stackoverflow podcast this week, Jeff mentioned that in 2004 he wrote a
Just listening to this week's podcast and thought it would be nice to group
I need to upgrade my current version of DNN this week. I am currently
I've been working a little with DevExpress CodeRush and Refactor! Pro this week, and
I was kind of scratching my head at this a week ago, and now
This is a follow-up to two questions I asked a week or so back.
I am planning to attend a one week course on this subject. I am
Open up a Rails console and enter this: 2.weeks.ago.between? 2.weeks.ago, 1.week.ago Did it give

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.