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 enable view/edit/delete option in the post?

I am trying to learn Drupal from today & during this by mistake i remove the checkbox from the options & now those options are not there to check it again & even i am not able to find them anywhere.

here is the imgur link of the problem
top one is after the menu disabled
below one is with the menu which i need to bring again.
http://imgur.com/a/Z9Onj

Do you see what argument(s) are wrong?

install file giving me:

Warning: Invalid argument supplied for foreach() in _drupal_schema_initialize() (line 7133 of C:\www\BARC7\includes\common.inc).
Warning: Invalid argument supplied for foreach() in _drupal_schema_initialize() (line 7133 of C:\www\BARC7\includes\common.inc).

I don't see them...

Webform Custom Validation on Preview Page

Hi,

I‘ve written some custom validation as per here: https://www.drupal.org/node/908600

The problem is that my validation hook is also firing on the webform‘s preview page. However, the submitted values aren‘t populated. I‘m struggling to get round this one - there doesn‘t seem to be an easy way to check that I‘m on the preview page in form alter when the validation is added (or should this check even be in the form alter hook?)

How to get nodes of taxonomy term(s) in drupal 8?

Hi,

How do I programmatically get nodes from a taxonomy term? In Drupal 6 and 7, there is taxonomy_select_nodes() function. But I can't seem to find it in 8.

Thank you.

Seong

Best practice for redirecting users via Drupal 8 code.

Can anybody tell me why the following code is outputting the proceeding http error, and potentially a fix?

submitForm

      $response = new RedirectResponse(Url::fromRoute('mymodule.routename'));
      $response->send();

Error

Duplicate headers received from server

ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION

I've got some working code but I was trying to remove deprecated code...

Pages

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