How do I dynamicall prevent content from being locked ?

Created on 14 January 2019, almost 6 years ago
Updated 22 March 2024, 7 months ago

I am content lock enabled and working for all nodes but I am trying to figure out a way to prevent content from being locked if a user has certain criteria or any other condition. I am attempting to do this in a form_alter hook but that does not seem to be doing the trick.

for example:

function my_module_node_form_alter($form, $form_state) {
  if (user->hasSomeCondition() == true) {
  // prevent lock 
  }
}

Is this possible?

Thanks

πŸ’¬ Support request
Status

Closed: duplicate

Component

Documentation

Created by

πŸ‡ΊπŸ‡ΈUnited States awm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024