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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:06:49+00:00 2026-05-23T11:06:49+00:00

I am trying to setup drupal 7 so that was when users signs-in for

  • 0

I am trying to setup drupal 7 so that was when users signs-in for the first time they are presented with a terms of use (I have tried the terms of use module but it doesn’t suit my needs as it only seems to work when the user creates the account and in our instance all accounts are created by the admin), and as is standard the user has to agree to these terms inorder to use there account.

For the second part of this once the user logs and agrees with the terms they have to be presented with the edit profile form to make necessarily updates.

Does anyone know of anyway to set this up (preferably without alot of development as this project is short on time)??? Any help is greatly 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-05-23T11:06:49+00:00Added an answer on May 23, 2026 at 11:06 am

    You know that user has not logged in yet if their “access” and “login” values are 0. So it should be enough to check them and if they are 0, redirect user to your T&Cs. In theory at least.

    The easiest solution (that comes to my mind right now anyway) would be something like this:

    function MYMODULE_form_alter(&$form, &$form_state, $form_id) {
      if ($form_id == 'user_login') {
        $form['#submit'][] = 'MYMODULE_user_login_submit';
      }
    }
    
    function MYMODULE_user_login_submit($form, &$form_state) {
      $user = user_load($form_state['uid']);
      if ($user->access == 0) {
        $form_state['redirect'] = 'your-terms-and-conditions-form-url';
      }
    }
    
    1. hook into “user_login” form and add own submit function
    2. in own submit function check both mentioned values, and if they equal 0, redirect user to your T&Cs

    The thing is that our submit gets called after main user_login_submit(), where (well, not exactly there) “login” value already gets updated – therefore we can check “access” field.

    The rest sounds easy enough – page with T&Cs and agree form, redirecting to user profile edit afterwards, easy-peasy…

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

Sidebar

Related Questions

trying to setup drupal's taxonomy module ( http://drupal.org/project/taxonomy_access ) to administer access to specific
After trying to setup my site for Google Webmaster Tools I found that my
I'm trying setup a map that displays different pin colors depending on the type/class
I'm trying to setup a SVN repo for a whole bunch of users. Different
I am trying to setup drupal to host multiple sites which will not effect
Trying to setup a simple Thread/Poll table mapping. Here is what I have: Threads
Trying to setup plone2pdf in Plone 4. I have downloaded the Plone2pdf archive, extracted
I'm trying to setup a simple has_many :through => association. I have 3 models.
Trying to setup a SQL stored procedure that if the variable passed to it
Trying to setup SVN to use HTTP, with the user/auth user access files. I

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.