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

Getting value from RADIO button in drupal 7 module

Good Day, comrades!

i have two Drupal 7 Form modules.

First one has field(one of many):

Paragraphs

I installed the paragraphs module and inserted the paragraphs field (Entity reference revisions) in a content type called Anagrafiche with the name field_sedi. For some registries (nodes) I have entered multiple locations, the field_sede field (in the paragraph) is linked with an entity reference to the locations.

Error message when i create field barcode on content type

Hello , 

i got a problem , when i create field barcode on content type , then error message

Deprecated function: Array and string offset access syntax with curly braces is deprecated ใน require_once() (lines: 341 of /home/webops/www/website_name/includes/module.inc)

how to fix it
( Module https://www.drupal.org/project/barcode )
 

I've reinstalled json api and now i'm getting this error

Hi team

I'm having an issue, i've reinstalled json api but now i'm getting this error:
error json

i've tried to clear cache from database and using drush, but i'm still getting this error,

could you please help me?

regards
Mario

Create new page output after submitting form

I 'm new to Drupal and I am trying to convert a simple PHP form to Drupal. The original PHP form collect some data from the user, does some processing and output a new page (report) to the user.  From the Drupal Form API documentation, it seems that FormBase can be used to collect and validate the user inputs. My question is how to create a new page/report in submitForm() function ? Most examples use messenger service to display the result in the same form page. Any direction and pointer to get this done is appreciated. Examples will be great !

Body field should already be filled when the node is created

I would like to have a bodyfield already filled in when I create the node. Unfortunately this is a lot of text in html, so I can't solve this with the https://www.drupal.org/project/prepopulate module. 

But I would like to build a small mini-module for this. I would like to drag the content from another node via nid and copy it into the body field of the node I am creating.

For this I would like to use the hook_entity_create Hook. Am I basically correct? My program looks like this at the moment: 

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions