This forum is for module development and code related questions, not general module support. For general support, use the post installation forum.

THIS FORUM IS NOT FOR "What module..." or module support questions-- it's for module development and code related questions.

The module development and code questions forum is intended to aid those who are developing modules or writing code for Drupal.

Please note that this forum is also not intended for "Is there a module that does..." or "I need help with module x..." questions. It's also not a place to ask developers to write your code for you. Please respect this.

Please do not post general discussions intended to target module developers. If the question you have isn't specifically related to writing a drupal module, please post it in a more appropriate forum.

  • If you you have drupal installed already and are seeking a module that does a specific task, have a question about a specific module and what it does or if it will fit your use case, please place your questions in the Post installation forum.
  • If you have a problem or question about a specific module, you should create an issue in the module's issue queue (after checking for an existing issue first).
  • If you don't have drupal installed yet, please place your questions in the Before you start forum.

Correct syntax to render $block['content'] as theme of type table

UPDATE: I think I found the answer, see in the Comments section.

Summary: when rendering a table into a block, nothing is displayed. What am I doing wrong?

I've been researching the answer to my question for the past 48 hours, and have held off writing a comment or new forum question so as to not duplicate a question, or ask about something that is clearly documented elsewhere.

I am writing a module to display the results of a very simple query:


This has been solved. Thanks if you considered the question.

How do I save the result of the last of multiple runs of a rule on a commerce order?

We have a rule that runs “after updating an existing commerce order.” The rule does many things that have a direct effect on the price of the order — and when a coupon is used on the order it actually runs twice. It seems to run well, most of the time.

passing dynamic variables to blocks

Dynamic variables can be created by adding them to the URL
so for example if we wanted to dynamically pass the string 'poo' to we would change the URL to

When creating pages with hook_menu it is possible to pass this variable to a page in the following manner

Display 2 different content types in view

I'm not sure if this is possible, but I'd like to display 2 different content types in a single view. The problem is that one of the content types is "news" with multiple "taxonomies" (press release, in the news, health news, etc), and the other content type is "blog." I need to filter blog and press release into a single view.

If I use Filter Criteria, and use "Content: type" and choose the content types "blog" and "news", then the view shows a blog post and one of the many news types. But I need to filter press release only.

Using search api in own module


I need to utilize search results in my own module. Basically I would come to the page with a keyword, use the search api results and action on each of the search results.

I have created an index for Search API (currently just using the database backend) using Drupal 7.

To my astonishment I have found almost none of the documentation making queries against the search api index even after asking Mr Google.


Subscribe with RSS Subscribe to RSS - Module Development and Code Questions