Removed inline function from widget_init hook to support older versions of PHP.
Ticket #FC-5