Quantcast
Channel: Active questions tagged users - Drupal Answers
Viewing all articles
Browse latest Browse all 468

How to attach a user into a module that updates content?

$
0
0

I have build a module that reads content from an API and then adds/edits this content in Drupal 10.

What I would like to do, is when it edits or creates content, to show as a specific Drupal user so that it makes it a bit more clear of which nodes it did touch.

I was considering creating the user on Module installation, but that would be a bit insecure as the user password will have to be hardcoded.

So, instead I'm thinking to create the user manually, and then make my module to search for the id of a specific named user.

What would be the best way to that?

Ideal solution would be to have a virtual user name of the module name, but I am not sure if that is even possible.

Thank you


Viewing all articles
Browse latest Browse all 468

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>