Basic restrict user view functionality
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
Gary A said 1 year, 1 month ago:
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.