public static function check_plugins()
{
// register the beacons
self::register_beacons();
// get the list we checked last time
$checked_list = Options::get('updates_beacons');
// if the lists are different
if ($checked_list != self::instance()->beacons) {
// remove any stored updates, just to avoid showing stale data
Options::delete('updates_available');
// schedule an update check the next time cron runs
CronTab::add_single_cron('update_check_single', Method::create('\\Habari\\Update', 'cron'), DateTime::create()->int, _t('Perform a single check for plugin updates, the plugin set has changed.'));
}
}