Add the "parseWidget" hook (see #5553)