


How to redirect an anonymous user to the login form after a 403 error?
I want to redirect an anonymous user to the login form if such user encounters a 403 error. I have created event subscriber and this is my code, but I end up on loop on the current page. /** * Redirect anonymous user to login page if he encounters 404 or 403 *... read more
Adding a form to Views Bulk Operation for configurable operations
I have a view with a list of nodes that I want to operate with, but I need additional user input for the function. Until now, I have been handing this by having many similar, but slightly different ‘Execute arbitrary PHP script’ actions. Is there any way... read more
How do I create a TEXT column?
I am trying to create a TEXT column. function _mymodule_installed_fields() { return array( ‘mymodule_summary’ => array( ‘field_name’ => ‘mymodule_summary’, ‘label’ => $t(‘Summary’),... read more
How to send password expire notification to users regularly?
Working on Drupal 7, I want to get an alert every 3 months to users saying that: Password will expire in next 5 days, please change it. I found a module called Password Expire (fulfill requirement but only in D6). Is there any alternate of this module for Drupal 7?... read more
How to add a "Remove Taxonomy term" option to VBO instead of only "Add taxonomy term"?
In Drupal 6 VBO I had an option to check if I want to add, remove term for example In drupal 7 view I can just add it (check the box) and not remove it for some reason, what am I missing I am attaching a screenshot from Drupal 6 where I could add, remove, even replace... read more
TableSelect with drag-and-drop weight
I have a tableselect and I have been looking all over the internet for a tutorial on how to make a tableselect have sorting/drag-and-drop functionality. I have found tutorials for making normal lists have click and drag, but not a single mention of tableselect. I... read more
Get Order Object on Checkout Complete Page
I’m trying to develop a new module but just can’t get the correct solution, I hope you can help me. On the checkout complete page i need the order object with all information of the just created order to print out an javascript code which will be created... read more
Showing more detailed error messages to user
im making an app with titanium that connects to a drupal backend. im using the awesome library (https://github.com/jbeuckm/drupal-client). how can i show more detailed error messages (e.g. email/username has already been taken)? i only get a 406 error code in ios when... read more
Displaying Webforms on Content Types in Page Manager/Panels
The Webform module allows for a webform to be attached to each Content Type of the site. I can “Enable webform functionality” on my Page and Blog Content types and don’t need to use a separate “webform” content type, very cool! This works... read more
How does drupal send emails by default?
I have a site working on drupal 6 , and i uses drupal’s default email function drupal_mail() to send emails , but unfortunately its not sending email and gives me “email not send , please contact site administrator” error , is there any smtp settings... read more
Clean URL leads to duplicate URL after migration to another hosting
I have enabled clean URLs on the site after various article has been published on the site. But when I migrate from Bluehost VPS to Bluehost Share hosting, the clean URLs is not accessible again. And when I remove ?q= I will see the enable box, and it has lead to... read more
Couldn’t avoid duplicates and merge rows on my views
I have a view of list of contents referenced in many others content types in my site. Lets talk about just 2 content types : A content type called container is referenced in a content type position, so we say that the container has many positions. Container position... read more
How to set up path for library and include files
In Drupal 7, I am writing PHP from inside the Front Page module, say: $page = include_once “templates/page.php”; I put the “templates/page.php” under /sites/all/modules/front and Drupal complains about file missing. Any suggestion where best to... read more
How to add a Related Products View for Commerce Kickstart?
I am trying to show related products in the products display for Commerce Kickstart. I tried using the method outlined in this tutorial but ran into a couple of issues: The “Target Type” in the entity reference field (the field used for the related... read more
Programmatically load the contents of a Product in a particular product type
I am developing an Ecommerce site and I am using Drupal-commerce module for it. I have an issue regarding loading the contents of a product which is: How can I programmatically get the contents of all the products in a particular product type? read more
How to export Panels Everywhere template code to a module
I would like to export a Panels Everywhere site template to code. I know you get some configuration code when you select the export tab, but I’m not sure how you turn that into a module that will generate the template with it’s variants and layout on... read more
File Transfer failed, reason: Unable to change to directory
I’m work on updates modules in my drupal site. When i access localhost/authorize.php after linked in config, i recieve this: Update failed! See the log below for more information. Your site is still in maintenance mode. the log is… views Error installing /... read more
How can I make more than 50 product variation types?
I have an online printing shop where each product can have different variations which can change the price. To make different product variations, I have to add all the different variation types as products, then add them to the product display. It works fine in this... read more