


How can I publish all the nodes authored by a user when the user’s role changes?
I’m using the SMSFramework module for my user validation. I have a rule that changes user role to Confirmed when the cellphone number is confirmed. All the nodes authored by that user are published. I am using the After updating an exisiting account event. It... read more
Views escapes HTML tags in node body
I’m creating a view that displays a few fields from a specific content type. Among the fields is the trimmed nody body. The problem is that the HTML tags in the body are escaped and are visible as source in the view. So instead of Lorem ipsum dolor sit amet, in... read more
How can I check in a condition if an image field has value?
Is there any way to check if an image field has no value after saving the content? I tried with Data Value is Empty, but it doesn’t work. These are the exported rules I am using. { "rules_autos_featured_listing_without_image" : { "LABEL" :... read more
Creating nodes from json including image field upload
I am trying to create a node programmatically from the data(JSON) sent by my front-end template. <input id=”title” name=”title” type=”text” > <input id=”body” name=”body” type=”text”>... read more
Field with unique and auto-increments values
I have a content type that in one of their fields need a value that is unique and auto-increment. There are several obvious solutions: Use the node id that is unique and auto-increment. The Serial module. The problem with these solutions is that they use the MySQL... read more
Change search results pager to mini pager?
How to change search result’s pager to mini pager. I want to change default pager to mini pager in that search result page. Please help me. Thank you. read more
Create a View of Books
I’m using the core Book module for organizing meeting notes and documentation. How do I create a list of books with the views module? That is, I’d like a list of only the top-level Books, not all the book pages. An example of what I want in core is at... read more
How to pass data from a Rules Action to a subsequent Rules Action?
How I can add actions in the Rules module in which they have a relationship with each other sequentially. I mean a 1st Rules Action sequentially passes data to a next Rules Action and in that next Rules Action I can use those passed data from previous data. read more
Use hook form alter to change input type
I am trying to change the input type on an ubercart checkout form using hook_form_alter. I added an extra field using the uc cart extra fields pane module but there is no option to add e-mail – only text – and I need the field I added to validate as an... read more
Printing printer friendly version of nodes in bulk
My scenario is this, a user selects a bunch of nodes and selects to print all the nodes. What I’d like to happen is, once the user clicks the print button, the print dialog opens up and all the nodes are printed at once. I’m using the Print module and... read more
How to reverse a drupal patch on netbeans
Is there a way to reverse a patch on Netbeans? Does simply copying the target file and repasting it will work? Or can the patch affect mutliple modules and code? read more
POST JSON data denormalization error
I created rest resource plugin in a custom module and need to send some JSON data with the request, and access it in the post function. At the moment my post function does not do anything but return some dummy JSON data so I know it is working. It seems that whenever... read more
How do I print the node creation timestamp in a computed field?
I want to store the node creation timestamp in a computed field. I know I should use date_format(), but I don’t know which code should I use for the field value. Which code should I use? read more
entity reference filter condition
I have created view and I have added the fields like entity reference fields followed by content fields, then I added the entity reference field in filter condition, but its not displaying the table data. Following methods I followed to create the filter conditions,... read more
How to insert a hashed password into table users?
I’m using services module, but i’ve created my own resource ‘login’, I’m using $data to store username + password. When i use postman, I put a text plain for password, and in my service code i’ve added the hash function (see my code... read more
File field upload in modal/dialog
I have a custom content type with file field as one of the fields. For theming/UI purposes I should make this file field as clickable button. And only when user clicks on it, he/she gets modal window with upload/file browse or file name if there already is a file... read more
Language switcher shows wrong language on front page after detection by browser settings
Content and interface are displayed correctly but the language switcher shows the default language when the language negotiation is set to these options: URL (language prefix) Browser Standard Means: Browser detection leads to displaying content in german for example,... read more
How to prevent entering a time-slot that is already taken when using the Calendar module?
I have installed and enabled the Calendar module. I have noticed that this allows multiple events for the same time slots. It means if event 1 is on Aug 12th from 11-12, I can still enter the same time slot for event 2. In this case, how can I apply a logic so it... read more