Attached is a patch to the core module that allows administrators to expire relationship requests which haven't been approved or denied within a specified number of days. The number of days is configurable based on the relationship type. The cron hook which deletes the relationship requests has logic to run no more often than once a day.

CommentFileSizeAuthor
urexpire.patch5.91 KBprfctns6@gmail.com
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

sprsquish’s picture

Status: Active » Closed (fixed)

Pushed the patch in with some of my own changes.

I changed the name of the column to "expires_val" which is still pretty clear, but gives us the ability to do different intervals later without needing to change this column name.

I changed the verbiage for the setting to be a bit more concise.

The cron hook now resides in the _hook file. I changed it up to prep it for more database types (ie using a switch statement). The actual deletion code now runs solely in the database; I eliminated the PHP iterator. This means we don't have to worry about creating the proper date using PHP and allows for simpler updating when we add support for other databases.