0
Recommendations
Summary:
Provides automated deletion of entities.
Full description:
Expirationdate
Delete entities based upon time.
Provides a method to set an expiration date for entities and to delete
the entities after that date. This plugin provides no user interface--it is
simply a helper plugin for other plugins.
** Usage **
Configure cron for Elgg as described in the Elgg documentation.
Install and enable the Expirationdate plugin. Be sure to set the plugin's
period to something that will match nicely with your cron jobs.
Within your plugin, set entity expiration dates by saying:
expirationdate_set($entity->guid, $expiration_date_string, bool);
Where $expiration_date_string is a valid strtotime() string.
If the 3rd parameter is true, the entity will be disabled instead of deleted.
Unset expiration dates by saying:
expirationdate_unset($entity->guid);
Before entities are deleted the plugin_hook expirationdate:expirate_entity is
called with $param set as:
array(
'entity' => entity object
)
If you register a function to this hook, the entity will not be deleted/disabled
unless the function returns true.
Each entity that has an expiration date will be passed through the plugin hook
expirationdate:will_expire_entity with the $param set as:
array(
'expirationdate' => timestamp of expiration,
'entity' => entity object
)
This can be used to send out warning emails, etc.
** Changes **
v1.6
* Added ability to run cron silently by passing false to function.
* Added elgg_version to manifest.xml.
* Upped limit while expiring entities to 99999 in case of many
unexpired entities.
* Added correct su'ing to an admin during cron in order to delete/
disable entities.
v1.5
* Fixed a typo in the 15 minute cron.
v1.4
* Correctly overriding the permissions instead of logging in the
admin user. (Thanks Kevin Jardine!)
Sorry, you CAN'T fix this problem
Casandra 190 days ago
It works for me. If you can a more detailed error report I could offer some suggestions...
Brett 190 days ago
Well, after manually disasbled the plugin the site worked again! BUT when I enabled it again and login, it will automaticly logout after a several clicks... When I disable this plugin, everything works fine and I get no weird actions like logout...
Casandra 189 days ago

Casandra
Profile
Friends
Friends of
Pages
Plugins
after I installed this plugin my site doesn't work anymore!
DO NOT INSTALL THIS PLUGIN!!!
You can fix this problem!!
Casandra 190 days ago