For one of our clients we are using workflows and most of the time our content stays unpublished as we are only working with draft version so we needed to stop expiration for those nodes. I find this really useful so i generated a patch with configuration for this feature.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ShaxA created an issue. See original summary.

ShaxA’s picture

ShaxA’s picture

Status: Active » Needs review
ShaxA’s picture

Sorry i forgot to export configuration options. So here is the working patch

Spleshka’s picture

Status: Needs review » Closed (works as designed)

I'd suggest you to implement hook_expire_urls_alter() where you can remove urls from being expired when the node is in the unpublished state. I don't see a necessity to provide a workarounds in the module for each possible workflow case.