xfrocks
Well-known member
I'm trying to create a custom Renderer, but due to the lack of(Or inability to find) documentation I cannot for the life of me figure this out, I have the following code inside /library/WidgetFramework/WidgetRenderer/MCStats.php:
http://pastebin.com/b7a4G6sn
Yet I cannot figure out how to add this to the Add Widget->Renderer list, any help?
Register a code even listener for widget_framework_ready, something like this
PHP:
<?php
class YourAddOn_Listener {
public static function widget_framework_ready(array &$renderers) {
$renderers[] = 'YourAddOn_CustomRenderer';
}
}