


dependent dropdowns via #ajax for unlimited option
I have a commerce Product content type, which has a field collection field attached to it field_mycollection, which has 4 different fields field1, field2, field3 and field4 dependent on each other. Like field2 will be filled based on field1 selected, field3 will be... read more
Problems with permanent caching
My requirement is to update some params in the script for a some specific nodes. If a set of nodes is attached to an X content type, it should take some params in a script. For this purpose I am running a cron job every 10 min as new contents can be attached to that X... read more
hook_form_alter #attributes and #disabled
I’m using Drupal 7 and Advanced forum. The users when will create a new topic will be able to select the forum container and forums, but if they select a container, an error will be showed. I want to avoid this by altering that taxonomy options with adding an... read more
How to show view item by trimming?
I’m trying to show articles by trimming. So, first I tried it by managing the display of body field to trimmed from content type. After fail to get desired results I tried it with views module by adding a contextual filter Content: Body setting character limit... read more
Add additional fields to the postal address
How can I add additional fields to the Address Field module’s Postal address field? I would like to add a field for the county. The default fields for the United States are the following. read more
Twitter sign in module session token values lost in twitter/oauth path in HTTPS – Invalid Twitter OAuth request
The twitter sign in module works on my local and staging server on HTTP fine. But when I install the same module in production mode which is https://example.com, it stops working. The error says “Invalid Twitter OAuth request”. I debugged the code a little... read more
Combine hook_search_execute
I have hook for user_search_execute and node_search_execute for both user and nodes but i want to merge both into mymoduel_search_execute but only node_search_execute uses index not user_search_execute like below :- /* node search execute */ function... read more
OAuth token parameter missing when configuring Google Analytics Reports
I’m displaying Google Analytics reports at my site using Google Analytics Reports module which uses Oauth. At the localhost on my computer it works fine. But on a site my.example.com it is showing “OAuth token parameter missing” when I go to... read more
Showing 2nd Depth term name and image along with it’s associated node’s title
So I have a “Category” vocabulary on my website like this: Parent Term 1: — First Child Term: — Second Child Term: — Associated Node 1 — Associated Node 2 Parent Term 2: — First Child Term: — Second Child Term: —... read more
How can I add previous and next controls to the views slide show?
I have the photo slider on home page using views-slideshow. Now I need to add previous and next controls to that slider. How can I? read more
How can I edit the contents of the printable invoice for Ubercart order?
I need to add some text and a few extra order fields (and user profile fields, if possible) to the printable invoice that is accessed via a link like this: http://mysite.com/admin/store/orders/12345/invoice/print I used grepWin to find all instances of the phrase... read more
How do you make Varnish cache update when Drupal content changes?
I just started playing with Varnish cache. Looks like an awesome thing to have for speeding up page load times! How does one force the cached copy of a node/page/content to be updated when the content changes in Drupal? Would it be something in the VCL file? I am... read more
Google Maps directions link icon
I would like to know how to embed a Google map on a page, so that the the “directions” icon is showing. I had previously used the Simple Gmap module, but it doesn’t provide the icon which I need. read more
Styling label of a select list
I want to style the label of my select list with bold font and give it some color. This is the code for rendering form which I am using in a hook_block_view $form[‘dropdown_first’] = array( ‘#type’ => ‘select’,... read more
Commerce Attribute price is not updating in cart
I am using commerce price attributes module then I am facing problem , price is updated on the product display node but not in my cart…also, there is no line item for the added price attribute. Example : In above images ,regular licence is showing price $2.00... read more
How do I change order of completion rules in checkout?
How do I change the order in which completion rules fire? There is a default Completition reaction rule. I wanted to add a second rule which executes some custom PHP but it’s never executed. I see no way to change the weight as in other rules. I also tried... read more
What to do if using Drupal 7 but host only supports Drupal 6? [closed]
What to do if using Drupal 7 but host only supports Drupal 6? Downgrade not an option. Would like to keep Drupal 7. read more
Using theme_preprocess_node i’m trying to add a class to all images on the page
My code below is not working and i’m not sure why. I’ve tried a few variants. according to the KPR variables output, the image I’m trying to access is here. $variables[‘field_about_image’][0] i think the 0 signifies it is the first (and... read more