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

[SOLVED] Change user role after changing user name

Hello,

is it possible to change users role, after editing the user name? If yes, how can i realize it? Eventually with rules or custom code?

Thanks

Custom Block content; to be updated on-change of dropdown

Drupal 7: Already written a custom_block that brings content from some REST API (doesn't matter from where the content is coming). Now there's a parameter in REST API call, users should be allowed to change. 

So initially block will load with some default content, default parameter value; and then users can change value of this parameter to fetch new results (preferably AJAX). I can't figure it out. If somebody can point me in right direction or provide right flow.

Controller that returns cached JSON

Hi everyone,

Hoping someone has run into a similar problem. I have created a controller used in AJAX that successfully returns JSON. I am now trying to make the JSON cacheable and am running into issues. I am using Drupal 8.6.x

The error returned is the following:

HTML in Commerce Invoice

Hi all, I am new here and I am new with Drupal. I am trying to solve a problem of a customer but after 4 hours studying pretty everything about Drupal, I guess I am not enough good to understand what to do.

I must change a word, "fattura" > "DDT" and this word is located in the commerce module or maybe in a custom commerce module.

If I surf the admin pages reaching admin/commerce/orders and then I click con "view" > "invoice", I find the words "Numero fattura". I looked for it everywhere in the directories and in the DB.... I found nothing.

Where in the views processing cycle can I read the views filter parameters (Drupal 7)?

Because the exposed filters area takes up too much space on the screen, I want to collapse the exposed filters area and display a plain text version of the views parameters, rather than waste spacing show the filter controls's settings.

Where in the views cycle will all the parameters be present and in what variables so I can read them and display them in some divs above the exposed filters area?

Using some Javascript to read the filter parameters in the menu andplacing them in a div will help, but I prefer to do it in PHP code itself.

custom VBO module

Hi all, I've developed a simple vbo module/action to create a zip file containing all attachments of selected elements of a view.

When the user selects the elements on the view and executes my action, I'd like the browser file download popup appear

(for automatic download of the zip file just created) but don't know how to add this functionality to the code: what methods to use and

where to put in the code flow 

Can anyone point me in the right direction ? 

Thank you very much

Marco

Pages

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