All Products 
Username / Customer#
Password
Log In
  • Site Search
  • Domain Search
  • WHOIS Domain Check
24/7 Support: (480) 505-8877
Hablamos Español
9 AM to 9 PM IST
7 days a week
Go Daddy Support

Search help articles, forums, and discussion groups

Basic restrict user view functionality

Viewing post 1 to 2 (2 total posts)
Profile picture of 3278

3278 said 1 year, 1 month ago:

Can you please provide code of a function to restrict the view based on the user id from Drupal login module

Profile picture of Gary A

GoDaddy Expert Gary A said 1 year, 1 month ago:

@3278

The Drupal User class if fairly complex, and what you have described would require significant custom coding for Drupal. If you are looking to restrict information from Easy Database based on the Drupal login, I believe the best way to go about doing this would be as a custom Drupal Module. You would use the standard Drupal login, through itself, and you could have scripting within Drupal to pull information from Easy Database based on the user that’s logged in. Although, it’s not very clear why you would wish to use Easy Database in this situation. It would likely be easier to create either a new table or row in your existing Drupal database to store the information you would like accessed through Drupal.

While Easy Database is a database storage platform, it does not host scripts. As such, Easy Database would not be able to directly access the Drupal database to obtain login information and determine who is currently logged in on your Drupal site.

-Gary

Add a reply:

You will auto join this group when you reply to this topic.

When posting about a technical issue, please be sure to include as many details as possible, such as your domain name, related URLs and other pertinent information. This consideration will allow us to better understand the situation and quickly assist you.