public static function user_deleted(\core\event\user_deleted $event) {
        $userid = $event->objectid;
        subscription_manager::delete_user_subscriptions($userid);
    }
public static function user_deleted(\core\event\user_deleted $event) {
        $userid = $event->objectid;
        subscription_manager::delete_user_subscriptions($userid);
    }
public static function user_deleted ( \ core \ event \ user_deleted $ event ) { $ userid = $ event -> objectid ; subscription_manager :: delete_user_subscriptions ( $ userid ) ; }
Observer that monitors user deleted event and delete user subscriptions.

@param \core\event\user_deleted $event the event object.
Observer that monitors user deleted event and delete user subscriptions .