updated function params for elgg_register_widget_type
fixes for Elgg 1.9
moved plugin setting check to the view using the setting