Which hook to use to detect new members added to group?
What is the best way to make a hook that only fires when new members are added to a group?I have a function that exports group memberships to moodle course enrolments. Right now I have it bound to...
View ArticleRemove Administration Theme from user/%/edit
I want the administration theme for all the default pages, except one: /user/%/editHow do I get the default theme to display for this page instead of the administration theme?
View ArticleHow can I populate a node field based on a user field?
I have an "address" field among the user fields. Here users can specify several entries for their addresses.They can create orders (these are custom content type nodes). The order node has a "shipping...
View ArticleIs it possible to find which user created an account?
I currently have a Drupal 7 site set up to allow users with the Doctor role to create users with the Patient role, via admin/people/create.Does Drupal store data about which user created a specific...
View Article/user/login 403 You are not authorized to access this page
I'm using Drupal 10 with Nginx and Basic Auth.On the user/login page, I get a "You are not authorized to access this page. 403" error.I can see the menu, but I do not see the login form.When I remove...
View ArticleHow to hide profile2 field label and captcha label in registration form
I've tried using 2 different functions, where both successfully sets the value to 'invisible' with a dsm($form) check. However, the label is still being displayed. function...
View ArticleDisplay message instead of redirecting to Access Denied page
I'm using Commerce Auction module for an auction site. I want to display a message when the auction time out occurs for a certain product and at the same moment the user clicks on place bid...
View ArticleHow to use subquery in views where clause
In my project user can created by profile2 module. When user is created i am assigning some role,initially user is block state. I have another user role ie.user app rover who can approved these user...
View ArticleForm API Field Permission
I am creating a custom form and storing data in custom table. I was wondering if there is any method to apply field level permission like $form['value']['#permission'] = array('access this field');I...
View ArticleHow long does it take for an account to be unblocked after 5 failed attempts?
I've tried to log in unsuccessfully to Drupal and I get the following error:There have been more than 5 failed login attempts for this account. It is temporarily blocked.Does anyone know how long the...
View ArticleSubdomain with shared database for users: subdomain not accessing primary...
I've successfully set up a multisite Drupal installation. I now have:www.example.com --> main sitesub.example.com --> a secondary siteHowever, I want the users to be shared. I know about shared...
View ArticleChange max length of signature field to more than 255 characters
How can I change the max length of the drupal 7 signature field to more than 255 characters? I've already changed the sql data type from 255 to varchar(900), yet drupal still shows the error, as soon...
View ArticleIs there a drush command to set permissions to true on ALL modules for...
I'm getting tired of having to go in the backend and click on some new module's permissions so that I can use them...Is there a drush command to enable permissions to true on ALL modules in on...
View ArticleAllow groups of users to edit a single Webform
I need to enable groups of users to edit one Webform so that they can collaboratively complete a questionnaire. I am not concerned with two people editing at the same really.I've seen mentioned the...
View Articlebuildcacheid() error on login/submission
Here are some contextual elements :Drupal 10.2.5 (contents (and users) where imported from a V7 drupal old sitePhp 8.1.27ldap_auth 8.x-40.3All pages of the site are restricted to authenticated users.So...
View ArticleChanging user register/login pages into secure sub domain
I need to change my user registration and login pages into a secure sub domain of my site, how is it possible ?In detail,When user logon to http://www.mysite.com/admin that must be redirected to...
View ArticleAccess denied for all users, sessions table empty, access log shows NULL uid
My Drupal 7 site has been up and running for a couple years without issue. I went to log in as admin today to check for security updates and had the following experience:When I first browse to the page...
View ArticleAlter existing routes doesn't work
I'm working on a D8 project trying to add custom access rules to some pages.I want to restrict access to specific users based on their id.I checked this and seems easy but I can't make it work!I want...
View ArticleRole cannot create or edit book content
I feel like I am missing something obvious that I just can't quite put my finger on.As an administrator, I see "Add Content > Book page" and "My Workbench > Create Content > Book page" in the...
View ArticleHow to create a link in my view of users to perform an operation like Active...
I am using Views to create a view for user management, which looks like in the image below:How to create an "Active" or "Block" link in my view which performs an operation for the selected user like...
View Article