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.

How to display validation errors to checkout panes

Hi, I am trying to validate checkout forms. I did manage to validate checkout form fields but could not display the validation errors to its specific checkout panes.

Unluckily the validation for checkout panes is not as simple as traditional form validation, as validation errors are supposed to be displayed with its specific panes rather than all at one place. I did find the validation handler for the continue button of checkout form in the following link as it is said to display errors with its specific panes.

PDOException “column not found” but does exist

This is on Drupal 7.39 with Domain Access and Ubercart

When pressing "checkout" button the site returns and error which shows in the dblog as:

PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'uc_payment_method_credit_checkout' in 'where clause': SELECT value FROM {variable} WHERE name =uc_payment_method_credit_checkout LIMIT 0, 1; Array ( ) in uc_domain_variable_get() (line 291 of /. . . /uc_domain.module).

Line 291 of the uc_domain_module is:

Entity API - Bundle Menu with Wildcard

Hi Guys,

I'm trying to get the bundles of my entity type to appear in the admin menu, however they do not appear. I have the following code and I am not sure if there is something that I have missed?

I want to have the following menu structure:


The field tabs (manage fields and manage field display) appear on the appropriate page (eg:admin/structure/data-types/manage/course) but still the bundles do not show up in the admin menu.

#parents seems difficult to understand ?

in drupal's
Seen many $element['#parent'] actually means himself and his parents,
But why called parents ? Hard to understand, does some one agree with me ?


one condition in form_set_eror function seems hard to understand ?

in this function

function form_set_error(){


There is a condition:


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