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

Math function.

Hello. 

I have this code in hook form alter:

Make last selection in form persist after submit

Hello,

I am developing a module with a block where I create a selection using the Client-side Hierarchical Select module.
It works so far, the selected values are specified in the path as intended and I can access them in the controller.

Change webform status for specific user role

Hello,

I am using webforms in which I have created a custom form and a custom module where I make various modifications. My client asked whether is possible while some users to be able to test the form (they belong to a specific role) while the form is closed. What I tried so far is these two things:

  • In my custom module hook_form_alter I insert the following code: 

function customvisit_form_alter(&$form, FormStateInterface $form_state, $form_id) {

Need the key and not the value in webform autocomplete

Hi, i need the key of selected autocomplete when arrive to my controller, but whenever submit the form only send the value and not the key

Is it possible to send the key from the webform? I am using the webform's default post handler

Incomming Currently data :

Array
(
    [create_new_group] => 0
    [select_group] => Group one
    [group_name] => 
    [create_default_subgroup] => 
    [subgroup_name] => sdasdasdas
)

Incomming expected data :

Autocomplete Exposed Filter

Custom Module - hook_theme not found

I'm creating a new module to handle searching, I have other modules like this. But when adding the new module I have run into an issue where the others have not. When first installing the module the content appears and then maybe after 20 minutes or so it disappears with the 'hook_theme not found' error. Clearing the cache brings the content back for another 20 or so minutes, rinse and repeat.

Controller:

Pages

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