Where does Drupal store its url/domain name?
I created a site using an IP address and imported a live site on another server, then I made the domain name live on the new server created with the IP address. Since then I get permissions error for...
View ArticleHow do I add tabledrag with 'weight' to admin form
I have built a fairly basic module but i'm struggling with the UX of the admin form. Essentially I need a list of items that have several values; a textfield, checkbox, select list and a button to...
View ArticleFlood control IP bypass whitelist
I am utilising Services to open up some login resources on my site and as a result if multiple users incorrectly try to sign in the entire external website will be blocked because of flood control.Is...
View ArticleBasic Password Reset steps not working
I have reviewed other similar posts, but none matches my problem.I built a Drupal site based on an old ASP.NET site. I imported the users from the old DB (which had passwords in plain text!). Most...
View ArticleProgrammatically impersonating another user without causing the currently...
How should a module change the value of the global $user, execute its own code, and restore the original value of $user without causing the current user to be logged out if an error happens?
View ArticleWhen can uid 1 get an access denied page?
I am having a very strange problem that I can't track down.We have been working on a custom site for a client now for several months. Theme is a Zen subtheme.I can't remember the last time I tried to...
View ArticleUsers cannot log in to new site in multisite
I am working with the Drupal multisite functionality. I have been asked to implement the following architecture:mysite is a Drupal site with several angular pages.mysite/backend is a separate site with...
View ArticleHow to display a user’s published content on their account?
Does anyone know how to display every article (or content type) a user has published on their "my account" view? To clarify, I only want it to display that specific user's published content so that all...
View ArticleRemove links from the menu tabs
How can I remove the some links from the Tab, when we are login as a particular user. Please see the below picture. I want to remove the tab Items maked in red rectangle (deny access to this link). I...
View ArticleForm Validation. Ensure Placeholder is not submitted value
I have a Drupal registration form with a placeholder set on a first name field. I am trying to get the form to check so that if the placeholder value is the same as the submitted value it will give an...
View ArticleDefine permissions for Actions?
function custom_mod_action_info() { return array('custom_mod_delete_user_cats' => array('label' => t('Delete a users cats'),'type' => 'user','configurable' => FALSE,'triggers' =>...
View ArticleHow to make a page visible only to users with permission to use the...
I have created a basic page which I only want to be viewable by people who have access to the administration theme. I have given the page a path of admin/shipping-help but to my surprise the page is...
View ArticleWhy doesn't currentUser return correct permissions? [closed]
This happens a lot of the time in my custom Drupal 10 module and I cannot figure out why. Custom permissions return wrong value with currentUser but returns correct value when loading user by uid....
View ArticleHow do I add fields and hide them from client?
I added fields to a Client profile using Profile2, such as first name and last name. But I added another fields, let's call it "Assigned Consultant". But the "Assigned Consultant" field...I don't want...
View ArticleMigrate user roles with static_map
I am trying to migrate D7 users into D10.I have enabled the following migrate modules:migratemigrate drupalmigrate plusmigrate toolsThe migration yml is as follows:id:...
View ArticleRead-only Permissions page in Drupal 10
Is there a way to set the permissions page read-only? I want to prevent certain roles from making any changes to the permissions but still able to view the permissions page. Alternatively, if that is...
View ArticleFile upload ajax and Radio Buttons not cooperating in registration form
I have enabled Profile 2 and profile Profile2 Registration Path modules on my site and have a really long registration form with lots of fields. I have some radio boxes and file upload fields also. The...
View ArticleUser authentication handled by a web service
I seek your help and advice. By default, Drupal manages user authentification using the user module that resides in the "core/modules" and through the main Drupal Database. In my case, the user is...
View ArticleHow to import multi-value fields into profile2 using the Migrate module
I have users each with a profile using the profile2 module. I am using a cookbook based on the Migrate framework to create the users and import profile data.Sample CSV data would...
View ArticleDisplay user list with number of comments and forum posts
I want to create blocks to display a list of all users with their number of comments and number of post on forum.In SQL, something like that :SELECT u.name as user, COUNT( n1.nid ) as 'number of post',...
View Article