- πΊπΈUnited States jcandan
Does π content_moderation support Needs work fix this?
Require on Publish is only checking if the entity is published and does not account for possible moderation states. For example, we'd like editors to be able to save a draft without filling in all required fields and RoP works well to allow this but it also allows the user to "Submit as Draft" because this is not considered published content. Since we need all required fields to be filled in when submitting for approval this is a roadblock for us.
Add an alter hook to the validate function to allow other modules to modify the "$is_published" variable.
Patch attached.
Example hook_alter();
function MY_MODULE_require_on_publish_is_published_alter(&$is_published, $entity, $operation){
switch ($operation){
case 'Submit for Approval':
$is_published = TRUE;
break;
}
}
Active
1.6
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Does π content_moderation support Needs work fix this?