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.

already exist in active configuration

When i uninstall module and than i try install again get error. what can i do?
error is

Modal link via table cell

I am using ctools modal. This is the first time ever using this.

I need a table cell to act as the link instead of a textual link. In addition, this cell is hard coded, not created by the render array. Because of the way this table is being created it cannot use the render array.

The table and cells are created dynamically, and each cell would link to the same location, just passing different variables.

Can anyone tell me how I can set these cells to act as links for my modal? If you have examples to point me to that would help as well.


Custom Module fields not showing up

I followed a video tutorial to get this custom module to show up but it's not working. I don't understand why not or what i'm missing.

$content_type = array(
'type' => 'npb',
'name' => $t('NPB'),
'description' => $t('A NPBM'),
'title_label' => $t('Bird Code Name'),
'base' => 'node_content',
'custom' => TRUE,

// Set remaining definitions with defaults.
$node_type = node_type_set_defaults($content_type);

$form table FILTER doesn't work with pager

I'm trying to add a filter to my table. But it doesn't work. It only "works" for the first page. But the total reselts also don't change. So if it were 4 pages it are still 4 pages after adding the filter.
And when going to another page with the pager it also resets the filter.

This is my code:

CTools causing strange issues

Hi all,

I'm having issues with the php function "include_once" within the page content after I upgraded the Chaos module. I have some php scripts that I use and I include them using the "include_once" into the body of the edit menu, but since the update it's doing absolutely nothing, there are other instances where i'm getting "Cannot Redeclare" fatal errors on methods. How can I debug this issue? If I change the include_once to include the content displays normally but I have so many instances of this that it would take a while to update. Any ideas?


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