


Date exposed filter default value
I’ve got exposed date filter (with daily granularity) and I want to provide default value for it. I just want to show nodes that have today ‘field_date’ date by default. The field has both start and end date. I use start date for exposed filter. How... read more
Changing textfield into textarea
I hope I’m right here with my request and someone can help. I’m working on a website with Drupal, but am not a trained programmer. I use a module which allows me to display a tooltip in Drupal. By default, this is defined as type “textfield”... read more
How do I alter the Price Component Title in Commerce Userpoints Discount without altering the module?
It seems that when a user adds a Userpoints Discount line item to their shopping cart it appears in the footer as ‘Royalty’, which will be totally confusing to users. On line #382 of commerce_userpoints_discount.module there is this code: function... read more
Uploaded file not shown in custom content type / Image not attached to content type
In Drupal 7, I am trying to upload an image that belongs to a custom type. I click the Browse button, choose the file and upload. Until there, all seems to work well. However, when I click next, instead of the add alt, title and text, I get only a screen that says... read more
How can I prevent HTML tags getting rendered as plain text?
I have my data from SQL with table HTML tags e.g. <tr> and <td>. When I render it in Views it displaying all the HTML table tags without rendering it. I put some code in .module file to pass this data using hook_views_post_execute I tried all the solution... read more
How to display google map field in hidden div?
I have a Google Map Field in my form. I’m editing the theme of the form and I’m using a jquery but the map is broken. The map is inside a div and the code of the template is this: And here is the Jquery: $(“#show-block-3”).click(function () {... read more
Commerce Rule For Sales Tax On Shipping To One State
We want to only apply sales tax on orders shipped to a particular State. I tried to cobble together the following rule from the included ‘Price Component’ and it seems to apply tax on shipping for -all- orders, regardless of the address component. Can... read more
SEO friendly URL for drupal commerce products
I am using Commerce Product Url module for generating unique url for commerce products like follows, For each product it provides id parameter, mycommercesite.com/node/1?id=1 mycommercesite.com/node/1?id=2 as well as sku parameter, mycommercesite.com/node/1?sku=pr1... read more
Content type not responding to AJAX callback
I am using a ctools content type plugins to render a custom form that will have only one submit button. The submitbutton will switch an eck entity field (boolean) from 0 to 1 and back (if pressed again, of course). I have defined my ctools content type plugin, form... read more
Settings vs Code: Can I turn off Broadcast Message through settings?
I manage a Drupal Commons site (that relies heavily on OG). I’ve a request to turn off the ability to broadcast to groups. Is there a box that somewhere that I can un-check or is it better to use hook_menu_alter() in a custom theme to disable the... read more